| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class EnablerExtensionTest extends FunctionalTest |
||
| 13 | { |
||
| 14 | protected function setUp() |
||
| 15 | { |
||
| 16 | parent::setUp(); |
||
| 17 | $config = Config::modify(); |
||
| 18 | $config->set(SSViewer::class, 'themes', [ |
||
| 19 | '$public', |
||
| 20 | '$default', |
||
| 21 | ]); |
||
| 22 | $config->set(EnablerExtension::class, 'login_themes', [ |
||
| 23 | 'silverstripe/login-forms:login-forms', |
||
| 24 | '$default', |
||
| 25 | ]); |
||
| 26 | $config->set(EnablerExtension::class, 'excluded_actions', [ |
||
| 27 | 'index', |
||
| 28 | 'ping', |
||
| 29 | ]); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function testThatSecurityActionsHaveUpdatedThemeListApplied() |
||
| 36 | } |
||
| 37 | |||
| 38 | public function testThatExcludedActionsDoNotHaveTheUpdatedThemeListApplied() |
||
| 44 |
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