Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class AccountingTest extends TestCase |
||
17 | { |
||
18 | use TestWithTransactionAndUser { |
||
19 | setUp as setupWithTransaction; |
||
20 | } |
||
21 | |||
22 | private Accounting $accounting; |
||
23 | |||
24 | protected function setUp(): void |
||
25 | { |
||
26 | $this->setupWithTransaction(); |
||
27 | |||
28 | /** @var User $user */ |
||
29 | $user = _em()->getRepository(User::class)->getOneByLogin('administrator'); |
||
30 | User::setCurrent($user); |
||
31 | |||
32 | global $container; |
||
33 | $this->accounting = $container->get(Accounting::class); |
||
34 | } |
||
35 | |||
36 | public function testCheck(): void |
||
56 | } |
||
57 | } |
||
58 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths