| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class FluentVersionedExtensionTest extends SapphireTest |
||
| 14 | { |
||
| 15 | protected static $fixture_file = 'FluentVersionedExtensionTest.yml'; |
||
| 16 | |||
| 17 | protected static $required_extensions = [ |
||
| 18 | SiteTree::class => [ |
||
| 19 | FluentSiteTreeExtension::class, |
||
| 20 | ], |
||
| 21 | ]; |
||
| 22 | |||
| 23 | protected function setUp() |
||
| 24 | { |
||
| 25 | parent::setUp(); |
||
| 26 | |||
| 27 | // Clear cache |
||
| 28 | Locale::clearCached(); |
||
| 29 | Domain::clearCached(); |
||
| 30 | FluentState::singleton() |
||
| 31 | ->setLocale('en_NZ') |
||
| 32 | ->setIsDomainMode(false); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function testIsDraftedInLocale() |
||
| 36 | { |
||
| 37 | /** @var Page $page */ |
||
| 38 | $page = $this->objFromFixture(Page::class, 'home'); |
||
| 39 | |||
| 40 | $this->assertTrue($page->isDraftedInLocale()); |
||
| 41 | } |
||
| 42 | |||
| 43 | public function testIsPublishedInLocale() |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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