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