Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class UserTest extends \Codeception\Test\Unit |
||
8 | { |
||
9 | public function testFindUserById() |
||
10 | { |
||
11 | verify($user = User::findIdentity(100))->notEmpty(); |
||
12 | verify($user->username)->equals('admin'); |
||
13 | |||
14 | verify(User::findIdentity(999))->empty(); |
||
15 | } |
||
16 | |||
17 | public function testFindUserByAccessToken() |
||
18 | { |
||
19 | verify($user = User::findIdentityByAccessToken('100-token'))->notEmpty(); |
||
20 | verify($user->username)->equals('admin'); |
||
21 | |||
22 | verify(User::findIdentityByAccessToken('non-existing'))->empty(); |
||
23 | } |
||
24 | |||
25 | public function testFindUserByUsername() |
||
26 | { |
||
27 | verify($user = User::findByUsername('admin'))->notEmpty(); |
||
28 | verify(User::findByUsername('not-admin'))->empty(); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @depends testFindUserByUsername |
||
33 | */ |
||
34 | public function testValidateUser() |
||
42 | } |
||
43 | |||
44 | } |
||
45 |
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