| Total Complexity | 2 | 
| Total Lines | 30 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 8 | class SiteTreePublishingEngineTest extends SapphireTest  | 
            ||
| 9 | { | 
            ||
| 10 | |||
| 11 | public function testCollectChangesForPublishing()  | 
            ||
| 12 |     { | 
            ||
| 13 | $obj = StaticPublishingTriggerPage::create();  | 
            ||
| 14 | $obj->collectChanges(['action' => 'publish']);  | 
            ||
| 15 | |||
| 16 | $this->assertEquals(  | 
            ||
| 17 | '/updateOnPublish',  | 
            ||
| 18 | $obj->getToUpdate()->first()->url  | 
            ||
| 19 | );  | 
            ||
| 20 | $this->assertEquals(  | 
            ||
| 21 | '/deleteOnPublish',  | 
            ||
| 22 | $obj->getToDelete()->first()->url  | 
            ||
| 23 | );  | 
            ||
| 24 | }  | 
            ||
| 25 | |||
| 26 | public function testCollectChangesForUnpublishing()  | 
            ||
| 38 | );  | 
            ||
| 39 | }  | 
            ||
| 41 |