mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Rename the @When step
This commit is contained in:
@@ -23,9 +23,9 @@ class FeatureContext implements Context
|
||||
}
|
||||
|
||||
/**
|
||||
* @When this is a demo scenario that sends a request to :path
|
||||
* @When a demo scenario sends a request to :path
|
||||
*/
|
||||
public function thisIsADemoScenarioThatSendsARequestTo(string $path)
|
||||
public function aDemoScenarioSendsARequestTo(string $path)
|
||||
{
|
||||
$this->response = $this->kernel->handle(Request::create($path, 'GET'));
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
Feature:
|
||||
In order to proves that the Behat Symfony extension is correctly installed
|
||||
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 this is a demo scenario that sends a request to "/"
|
||||
When a demo scenario sends a request to "/"
|
||||
Then the response should be received
|
||||
|
||||
Reference in New Issue
Block a user