Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testGetField() |
||
27 | { |
||
28 | $area = $this->objFromFixture(ElementalArea::class, 'area1'); |
||
29 | |||
30 | $field = ElementalAreaField::create('ElementalArea', $area, [ElementContent::class]); |
||
31 | $this->assertInstanceOf(FormField::class, $field); |
||
32 | $this->assertEquals('ElementalArea', $field->getName()); |
||
33 | |||
34 | $classes = $field->getConfig()->getComponentByType(GridFieldAddNewMultiClass::class)->getClasses($field); |
||
35 | |||
36 | $this->assertCount(1, $classes, 'Only one type available'); |
||
37 | $this->assertArrayHasKey('DNADesign-Elemental-Models-ElementContent', $classes); |
||
38 | } |
||
40 |
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