1 | <?php |
||
21 | final class DashboardContext implements Context |
||
22 | { |
||
23 | /** |
||
24 | * @var DashboardPageInterface |
||
25 | */ |
||
26 | private $dashboardPage; |
||
27 | |||
28 | /** |
||
29 | * @param DashboardPageInterface $dashboardPage |
||
30 | */ |
||
31 | public function __construct(DashboardPageInterface $dashboardPage) |
||
35 | |||
36 | /** |
||
37 | * @When I open administration dashboard |
||
38 | */ |
||
39 | public function iOpenAdministrationDashboard() |
||
43 | |||
44 | /** |
||
45 | * @Then I should see :number new orders |
||
46 | */ |
||
47 | public function iShouldSeeNewOrders($number) |
||
51 | |||
52 | /** |
||
53 | * @Then I should see :number new customers |
||
54 | */ |
||
55 | public function iShouldSeeNewCustomers($number) |
||
59 | |||
60 | /** |
||
61 | * @Then there should be total sales of :total |
||
62 | */ |
||
63 | public function thereShouldBeTotalSalesOf($total) |
||
67 | |||
68 | /** |
||
69 | * @Then the average order value should be :value |
||
70 | */ |
||
71 | public function myAverageOrderValueShouldBe($value) |
||
75 | |||
76 | /** |
||
77 | * @Then I should see :number customers in the list |
||
78 | */ |
||
79 | public function iShouldSeeCustomersInTheList2($number) |
||
83 | |||
84 | /** |
||
85 | * @Then I should see :number new orders in the list |
||
86 | */ |
||
87 | public function iShouldSeeNewOrdersInTheList($number) |
||
91 | } |
||
92 |