Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | protected function setUp() |
||
16 | { |
||
17 | // Mock the field populator, in case an action we perform in a unit test tries to contact the mock API. |
||
18 | // Done before parent::setUp() so write hooks don't run during fixture population. |
||
19 | $populator = $this->createMock(ResourcePopulatorInterface::class); |
||
20 | Injector::inst()->registerService($populator, ResourcePopulatorInterface::class); |
||
21 | |||
22 | parent::setUp(); |
||
23 | } |
||
41 |