1 | <?php |
||
13 | class FeatureContext extends MinkContext implements Context |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * The Magento 2 installation directory. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $installDir; |
||
22 | |||
23 | /** |
||
24 | * Initializes context. |
||
25 | * |
||
26 | * Every scenario gets its own context instance. |
||
27 | * You can also pass arbitrary arguments to the |
||
28 | * context constructor through behat.yml. |
||
29 | * |
||
30 | * @param string $installDir The Magento 2 installation directory |
||
31 | */ |
||
32 | public function __construct($installDir) |
||
36 | |||
37 | /** @BeforeFeature */ |
||
38 | public static function prepareForTheFeature() |
||
41 | |||
42 | /** @BeforeScenario */ |
||
43 | public function before(BeforeScenarioScope $scope) |
||
56 | |||
57 | /** @AfterScenario */ |
||
58 | public function after(AfterScenarioScope $scope) |
||
61 | |||
62 | protected function appendInstallDir($cmd) |
||
66 | |||
67 | protected function prependInstallDir($cmd) |
||
71 | |||
72 | /** |
||
73 | * @Given a third party system has copied the file :arg1 into the import folder :arg2 |
||
74 | */ |
||
75 | public function aThirdPartySystemHasCopiedTheFileIntoTheImportFolder2($arg1, $arg2) |
||
84 | |||
85 | /** |
||
86 | * @Given that a new file :arg1 containing data is available |
||
87 | */ |
||
88 | public function thatANewFileContainingDataIsAvailable($arg1) |
||
97 | |||
98 | /** |
||
99 | * @When the command :arg1 has been executed |
||
100 | */ |
||
101 | public function theCommandHasBeenExecuted($arg1) |
||
107 | |||
108 | /** |
||
109 | * @When the magento command :arg1 has been executed |
||
110 | */ |
||
111 | public function theMagentoCommandHasBeenExecuted($arg1) |
||
117 | |||
118 | /** |
||
119 | * @Then all the data in the file :arg1 has been imported |
||
120 | */ |
||
121 | public function allTheDataInTheFileHasBeenImported2($arg1) |
||
125 | } |
||
126 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.