| 1 | <?php |
||
| 21 | final class ProductContext implements Context |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var ProductShowPage |
||
| 25 | */ |
||
| 26 | private $productShowPage; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param ProductShowPage $productShowPage |
||
| 30 | */ |
||
| 31 | public function __construct(ProductShowPage $productShowPage) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @Then I should be able to access product :product |
||
| 38 | */ |
||
| 39 | public function iShouldBeAbleToAccessProduct(ProductInterface $product) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @Then I should not be able to access product :product |
||
| 48 | */ |
||
| 49 | public function iShouldNotBeAbleToAccessProduct(ProductInterface $product) |
||
| 55 | } |
||
| 56 |