| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class SecurityAlertExtensionTest extends SapphireTest |
||
| 11 | { |
||
| 12 | protected static $fixture_file = 'PackageSecurityExtensionTest.yml'; |
||
| 13 | |||
| 14 | protected function setUp() |
||
| 15 | { |
||
| 16 | if (!class_exists(Package::class)) { |
||
| 17 | static::$fixture_file = null; |
||
| 18 | $this->markTestSkipped( |
||
| 19 | 'Module bringyourownideas/silverstripe-maintenance is required for this test, but is not present.' |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | QueuedJobService::config()->set('use_shutdown_function', false); |
||
| 24 | |||
| 25 | parent::setUp(); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testExtensionAppliesWhenMaintenanceModuleIsPresent() |
||
| 34 | } |
||
| 35 | } |
||
| 36 |
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