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 | * @When I open administration dashboard for :code channel |
||
46 | */ |
||
47 | public function iOpenAdministrationDashboardForChannel($code) |
||
51 | |||
52 | /** |
||
53 | * @When I choose :channelName channel |
||
54 | */ |
||
55 | public function iChooseChannel($channelName) |
||
59 | |||
60 | /** |
||
61 | * @Then I should be on the administration dashboard |
||
62 | */ |
||
63 | public function iShouldBeOnAdministrationDashboard() |
||
67 | |||
68 | /** |
||
69 | * @Then I should see :number new orders |
||
70 | */ |
||
71 | public function iShouldSeeNewOrders($number) |
||
75 | |||
76 | /** |
||
77 | * @Then I should see :number new customers |
||
78 | */ |
||
79 | public function iShouldSeeNewCustomers($number) |
||
83 | |||
84 | /** |
||
85 | * @Then there should be total sales of :total |
||
86 | */ |
||
87 | public function thereShouldBeTotalSalesOf($total) |
||
91 | |||
92 | /** |
||
93 | * @Then the average order value should be :value |
||
94 | */ |
||
95 | public function myAverageOrderValueShouldBe($value) |
||
99 | |||
100 | /** |
||
101 | * @Then I should see :number new customers in the list |
||
102 | */ |
||
103 | public function iShouldSeeNewCustomersInTheList($number) |
||
107 | |||
108 | /** |
||
109 | * @Then I should see :number new orders in the list |
||
110 | */ |
||
111 | public function iShouldSeeNewOrdersInTheList($number) |
||
115 | } |
||
116 |