| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 8 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class SiteTreePublishingEngineTest extends SapphireTest |
||
| 14 | { |
||
| 15 | protected function setUp() |
||
| 16 | { |
||
| 17 | parent::setUp(); |
||
| 18 | |||
| 19 | Config::modify()->set(QueuedJobService::class, 'use_shutdown_function', false); |
||
| 20 | Injector::inst()->registerService(new QueuedJobsTest_Handler(), QueuedJobHandler::class); |
||
| 21 | Injector::inst()->registerService(new QueuedJobsTestService(), QueuedJobService::class); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function testCollectChangesForPublishing() |
||
| 25 | { |
||
| 26 | $obj = StaticPublishingTriggerPage::create(); |
||
| 27 | $obj->collectChanges(['action' => 'publish']); |
||
| 28 | |||
| 29 | $this->assertSame( |
||
| 30 | '/updateOnPublish', |
||
| 31 | $obj->getToUpdate()->first()->url |
||
| 32 | ); |
||
| 33 | $this->assertSame( |
||
| 34 | '/deleteOnPublish', |
||
| 35 | $obj->getToDelete()->first()->url |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testCollectChangesForUnpublishing() |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |
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