Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen committed May 15, 2024
1 parent db8847b commit 48df9b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/app/config/routes.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
_pimcore:
resource: "@PimcoreCoreBundle/config/routing.yaml"
# auto loads routes from all bundles in config/pimcore/routing.yaml
_pimcore_bundle_auto:
resource: .
type: pimcore_bundle
3 changes: 3 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php declare(strict_types=1);

use Doctrine\Common\Annotations\AnnotationRegistry;
use Neusta\Pimcore\TestingFramework\Pimcore\BootstrapPimcore;

require_once __DIR__ . '/../vendor/autoload.php';

AnnotationRegistry::registerLoader('class_exists');

BootstrapPimcore::bootstrap(
PIMCORE_PROJECT_ROOT: __DIR__ . '/app',
KERNEL_CLASS: TestKernel::class,
Expand Down

0 comments on commit 48df9b7

Please sign in to comment.