| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ElementSiteTreeFilterSearchTest extends SapphireTest |
||
| 12 | { |
||
| 13 | protected static $fixture_file = 'ElementSiteTreeFilterSearchTest.yml'; |
||
| 14 | |||
| 15 | protected static $extra_dataobjects = [ |
||
| 16 | TestPage::class, |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $searchTerm |
||
| 21 | * @param array $expected |
||
| 22 | * @dataProvider searchProvider |
||
| 23 | */ |
||
| 24 | public function testElementalPageDataMatchesInCmsSearch($searchTerm, $expected) |
||
| 25 | { |
||
| 26 | $filter = CMSSiteTreeFilter_Search::create(['Term' => $searchTerm]); |
||
| 27 | $result = $filter->getFilteredPages(); |
||
| 28 | |||
| 29 | $this->assertListContains($expected, $result); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return array[] |
||
| 34 | */ |
||
| 35 | public function searchProvider() |
||
| 47 | ]], |
||
| 48 | ]; |
||
| 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