1 | <?php |
||
21 | final class OrderContext implements Context |
||
22 | { |
||
23 | /** |
||
24 | * @var OrderRepositoryInterface |
||
25 | */ |
||
26 | private $orderRepository; |
||
27 | |||
28 | /** |
||
29 | * @param OrderRepositoryInterface $orderRepository |
||
30 | */ |
||
31 | public function __construct(OrderRepositoryInterface $orderRepository) |
||
35 | |||
36 | /** |
||
37 | * @When I delete the order :orderNumber |
||
38 | */ |
||
39 | public function iDeleteTheOrder($orderNumber) |
||
49 | |||
50 | /** |
||
51 | * @Then /^([^"]+) should not exist in the registry$/ |
||
52 | */ |
||
53 | public function orderShouldNotExistInTheRegistry(OrderInterface $order) |
||
60 | } |
||
61 |