| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testConstruct() |
||
| 19 | { |
||
| 20 | /** @var Page $page */ |
||
| 21 | $page = Injector::inst()->get(Page::class); |
||
| 22 | /** @var PageController $controller */ |
||
| 23 | $controller = Injector::inst()->createWithArgs(PageController::class, [$page]); |
||
| 24 | |||
| 25 | /** @var SolrSearchForm $form */ |
||
| 26 | $form = SolrSearchForm::create( |
||
| 27 | $controller, |
||
| 28 | 'TestForm', |
||
| 29 | FieldList::create(), |
||
| 30 | FieldList::create() |
||
| 31 | ); |
||
| 32 | |||
| 33 | $this->assertInstanceOf(NullSecurityToken::class, $form->getSecurityToken()); |
||
| 34 | |||
| 35 | $this->assertEquals('GET', $form->FormMethod()); |
||
| 36 | } |
||
| 37 | } |
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