1 | <?php |
||
10 | class ProductFeatureContext implements Context |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var \ConsoleContext |
||
15 | */ |
||
16 | private $consoleContext; |
||
17 | |||
18 | /** |
||
19 | * @var \FeatureContext |
||
20 | */ |
||
21 | private $featureContext; |
||
22 | |||
23 | /** @BeforeScenario */ |
||
24 | public function before(BeforeScenarioScope $scope) |
||
33 | |||
34 | /** |
||
35 | * @Then title and price are :arg1,( ) |
||
36 | * @Then title and price are :arg1, :arg2 |
||
37 | */ |
||
38 | public function assertTitleAndPrice($arg1, $arg2 = null) |
||
51 | |||
52 | /** |
||
53 | * @Given files with products to be updated are available |
||
54 | */ |
||
55 | public function filesWithProductsToBeUpdatedAreAvailable() |
||
64 | |||
65 | /** |
||
66 | * @Given the import process has been started |
||
67 | */ |
||
68 | public function theImportProcessHasBeenStarted() |
||
73 | |||
74 | /** |
||
75 | * @When the import process has been finished |
||
76 | */ |
||
77 | public function assertExitCode() |
||
84 | |||
85 | /** |
||
86 | * @Then a success message has to be rendered |
||
87 | */ |
||
88 | public function assertSuccessMessage() |
||
97 | |||
98 | /** |
||
99 | * @Then a message :arg1 has to be rendered |
||
100 | */ |
||
101 | public function assertMessage($arg1) |
||
108 | } |
||
109 |