Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function testAlertsAreIncludedInDataSchema() |
||
22 | { |
||
23 | /** @var Package $package */ |
||
24 | $package = $this->objFromFixture(Package::class, 'package_a'); |
||
25 | |||
26 | $dataSchema = $package->getDataSchema(); |
||
27 | $this->assertArrayHasKey('securityAlerts', $dataSchema); |
||
28 | $this->assertNotEmpty($dataSchema['securityAlerts']); |
||
29 | |||
30 | $firstAlert = $dataSchema['securityAlerts'][0]; |
||
31 | $this->assertEquals('SS-123-456', $firstAlert['Identifier']); |
||
32 | $this->assertEquals('silverstripe.org', $firstAlert['ExternalLink']); |
||
33 | } |
||
35 |
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