| 1 | <?php |
||
| 2 | |||
| 3 | namespace Dynamic\Elements\Section\Tests; |
||
| 4 | |||
| 5 | use DNADesign\Elemental\Models\ElementalArea; |
||
| 6 | use Dynamic\Base\Test\TestBlogPost; |
||
|
0 ignored issues
–
show
|
|||
| 7 | use Dynamic\Elements\Section\Elements\ElementSectionNavigation; |
||
| 8 | use Dynamic\Elements\Section\Test\TestPage; |
||
|
0 ignored issues
–
show
The type
Dynamic\Elements\Section\Test\TestPage was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 9 | use SilverStripe\Core\Injector\Injector; |
||
| 10 | use SilverStripe\Dev\Debug; |
||
| 11 | use SilverStripe\Dev\SapphireTest; |
||
| 12 | use SilverStripe\ORM\FieldType\DBField; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Class ElementSectionNavigationTest. |
||
| 16 | */ |
||
| 17 | class ElementSectionNavigationTest extends SapphireTest |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected static $fixture_file = '../fixtures.yml'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Tests getSectionNavigation(). |
||
| 26 | */ |
||
| 27 | public function testGetSectionNavigation() |
||
| 28 | { |
||
| 29 | $nav = $this->objFromFixture(ElementSectionNavigation::class, "one"); |
||
| 30 | $this->assertFalse($nav->getSectionNavigation()); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * |
||
| 35 | */ |
||
| 36 | public function testGetSummary() |
||
| 37 | { |
||
| 38 | $object = $this->objFromFixture(ElementSectionNavigation::class, "one"); |
||
| 39 | $expected = DBField::create_field('HTMLText', '<p>Section Navigation</p>')->Summary(20); |
||
| 40 | $this->assertEquals($object->getSummary(), $expected); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * |
||
| 45 | */ |
||
| 46 | public function testGetType() |
||
| 47 | { |
||
| 48 | $object = $this->objFromFixture(ElementSectionNavigation::class, "one"); |
||
| 49 | $this->assertEquals($object->getType(), 'Section Navigation'); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
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