From a66aae5bed295c9652d9e66bd5d2cf39dffcca36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Tue, 30 Jul 2019 14:57:29 +0200 Subject: [PATCH] Add recipes created by initial composer install --- .env.test | 4 + .gitignore | 1 - config/bundles.php | 1 - config/graphql/types/.gitignore | 0 config/packages/doctrine_migrations.yaml | 5 + config/packages/prod/webpack_encore.yaml | 4 + config/packages/test/validator.yaml | 3 + features/bootstrap/FeatureContext.php | 48 ++ features/bootstrap/bootstrap.php | 4 + features/demo.feature | 12 + symfony.lock | 992 +++++++++++++++++++++++ tests/.gitignore | 0 12 files changed, 1072 insertions(+), 2 deletions(-) create mode 100644 .env.test create mode 100644 config/graphql/types/.gitignore create mode 100644 config/packages/doctrine_migrations.yaml create mode 100644 config/packages/prod/webpack_encore.yaml create mode 100644 config/packages/test/validator.yaml create mode 100644 features/bootstrap/FeatureContext.php create mode 100644 features/bootstrap/bootstrap.php create mode 100644 features/demo.feature create mode 100644 symfony.lock create mode 100644 tests/.gitignore 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 @@ +