| 1 | <?php |
||
| 20 | final class ManagingArticlesContext implements Context |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var IndexPage |
||
| 24 | */ |
||
| 25 | private $indexPage; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param IndexPage $indexPage |
||
| 29 | */ |
||
| 30 | public function __construct( |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @When I want to browse articles |
||
| 38 | */ |
||
| 39 | public function iWantToBrowseArticles() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @Then /^there should be (\d+) articles in the list$/ |
||
| 46 | */ |
||
| 47 | public function iShouldSeeArticlesInTheList(int $number = 1): void |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @Then I should (also )see the article :title in the list |
||
| 54 | */ |
||
| 55 | public function theArticleShouldAppearInTheWebsite($title) |
||
| 61 | } |
||
| 62 |