1 | <?php |
||
16 | class FixtureHelper extends Module |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Redeclare visibility because codeception includes all public methods that do not start with "_" |
||
21 | * and are not excluded by module settings, in actor class. |
||
22 | */ |
||
23 | use FixtureTrait { |
||
24 | loadFixtures as public; |
||
25 | fixtures as public; |
||
26 | globalFixtures as public; |
||
27 | createFixtures as public; |
||
28 | unloadFixtures as protected; |
||
29 | getFixtures as protected; |
||
30 | getFixture as protected; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Method called before any suite tests run. Loads User fixture login user |
||
35 | * to use in acceptance and functional tests. |
||
36 | * @param array $settings |
||
37 | */ |
||
38 | public function _beforeSuite($settings = []) |
||
42 | |||
43 | /** |
||
44 | * Method is called after all suite tests run |
||
45 | */ |
||
46 | public function _afterSuite() |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | public function globalFixtures() |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | public function fixtures() |
||
73 | } |
||
74 |