Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function testGetMemberView() |
||
12 | { |
||
13 | $page = \Page::get()->first(); |
||
|
|||
14 | $extension = new DataObjectExtension(); |
||
15 | $extension->setOwner($page); |
||
16 | |||
17 | $viewStatus = $extension->getMemberView(); |
||
18 | |||
19 | $this->assertEquals(['null'], $viewStatus); |
||
20 | |||
21 | $page->CanViewType = 'LoggedInUsers'; |
||
22 | $page->write(); |
||
23 | |||
24 | $extension->setOwner($page); |
||
25 | |||
26 | $status = $extension->getMemberView(); |
||
27 | |||
28 | $this->assertNotContains('null', $status); |
||
29 | } |
||
31 |
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