diff --git a/.env.test b/.env.test new file mode 100644 index 0000000000..24a43c03bb --- /dev/null +++ b/.env.test @@ -0,0 +1,4 @@ +# define your env variables for the test env here +KERNEL_CLASS='App\Kernel' +APP_SECRET='$ecretf0rt3st' +SYMFONY_DEPRECATIONS_HELPER=999999 diff --git a/.gitignore b/.gitignore index 5fca00ae19..bc18ef4d79 100644 --- a/.gitignore +++ b/.gitignore @@ -72,7 +72,6 @@ composer.phar composer.lock -symfony.lock yarn.lock .buildpath .project diff --git a/config/bundles.php b/config/bundles.php index 658c2d520b..e5a446c57c 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -24,7 +24,6 @@ Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true], WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle::class => ['all' => true], FOS\HttpCacheBundle\FOSHttpCacheBundle::class => ['all' => true], - // eZ Platform eZ\Bundle\EzPublishCoreBundle\EzPublishCoreBundle::class => ['all' => true], eZ\Bundle\EzPublishLegacySearchEngineBundle\EzPublishLegacySearchEngineBundle::class => ['all' => true], EzSystems\EzPlatformSolrSearchEngineBundle\EzSystemsEzPlatformSolrSearchEngineBundle::class => ['all' => true], diff --git a/config/graphql/types/.gitignore b/config/graphql/types/.gitignore new file mode 100644 index 0000000000..e69de29bb2 diff --git a/config/packages/doctrine_migrations.yaml b/config/packages/doctrine_migrations.yaml new file mode 100644 index 0000000000..3bf0fbcae9 --- /dev/null +++ b/config/packages/doctrine_migrations.yaml @@ -0,0 +1,5 @@ +doctrine_migrations: + dir_name: '%kernel.project_dir%/src/Migrations' + # namespace is arbitrary but should be different from App\Migrations + # as migrations classes should NOT be autoloaded + namespace: DoctrineMigrations diff --git a/config/packages/prod/webpack_encore.yaml b/config/packages/prod/webpack_encore.yaml new file mode 100644 index 0000000000..d0b3ba81e9 --- /dev/null +++ b/config/packages/prod/webpack_encore.yaml @@ -0,0 +1,4 @@ +#webpack_encore: + # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) + # Available in version 1.2 + #cache: true diff --git a/config/packages/test/validator.yaml b/config/packages/test/validator.yaml new file mode 100644 index 0000000000..1e5ab7880b --- /dev/null +++ b/config/packages/test/validator.yaml @@ -0,0 +1,3 @@ +framework: + validation: + not_compromised_password: false diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php new file mode 100644 index 0000000000..36378b59e6 --- /dev/null +++ b/features/bootstrap/FeatureContext.php @@ -0,0 +1,48 @@ +kernel = $kernel; + } + + /** + * @When a demo scenario sends a request to :path + */ + public function aDemoScenarioSendsARequestTo(string $path) + { + $this->response = $this->kernel->handle(Request::create($path, 'GET')); + } + + /** + * @Then the response should be received + */ + public function theResponseShouldBeReceived() + { + if ($this->response === null) { + throw new \RuntimeException('No response received'); + } + } +} diff --git a/features/bootstrap/bootstrap.php b/features/bootstrap/bootstrap.php new file mode 100644 index 0000000000..0f3ad18d3b --- /dev/null +++ b/features/bootstrap/bootstrap.php @@ -0,0 +1,4 @@ +