Rename the @When step

This commit is contained in:
Samuel ROZE
2017-06-07 09:25:31 +01:00
parent d31e56a20a
commit 47dcdf198a
2 changed files with 4 additions and 4 deletions
@@ -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