-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recipes created by initial composer install
- Loading branch information
Showing
12 changed files
with
1,072 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# define your env variables for the test env here | ||
KERNEL_CLASS='App\Kernel' | ||
APP_SECRET='$ecretf0rt3st' | ||
SYMFONY_DEPRECATIONS_HELPER=999999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,6 @@ | |
|
||
composer.phar | ||
composer.lock | ||
symfony.lock | ||
yarn.lock | ||
.buildpath | ||
.project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
framework: | ||
validation: | ||
not_compromised_password: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
use Behat\Behat\Context\Context; | ||
use Symfony\Component\HttpFoundation\Request; | ||
use Symfony\Component\HttpFoundation\Response; | ||
use Symfony\Component\HttpKernel\KernelInterface; | ||
|
||
/** | ||
* This context class contains the definitions of the steps used by the demo | ||
* feature file. Learn how to get started with Behat and BDD on Behat's website. | ||
* | ||
* @see http://behat.org/en/latest/quick_start.html | ||
*/ | ||
class FeatureContext implements Context | ||
{ | ||
/** | ||
* @var KernelInterface | ||
*/ | ||
private $kernel; | ||
|
||
/** | ||
* @var Response|null | ||
*/ | ||
private $response; | ||
|
||
public function __construct(KernelInterface $kernel) | ||
{ | ||
$this->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'); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'test'); | ||
require dirname(__DIR__, 2).'/config/bootstrap.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file contains a user story for demonstration only. | ||
# Learn how to get started with Behat and BDD on Behat's website: | ||
# http://behat.org/en/latest/quick_start.html | ||
|
||
Feature: | ||
In order to prove that the Behat Symfony extension is correctly installed | ||
As a user | ||
I want to have a demo scenario | ||
|
||
Scenario: It receives a response from Symfony's kernel | ||
When a demo scenario sends a request to "/" | ||
Then the response should be received |
Oops, something went wrong.