Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function testCollectChangesForUnpublishing() |
||
26 | { |
||
27 | $obj = StaticPublishingTriggerPage::create(); |
||
28 | $obj->collectChanges(['action' => 'unpublish']); |
||
29 | |||
30 | $this->assertSame( |
||
31 | '/updateOnUnpublish', |
||
32 | $obj->getToUpdate()->first()->url |
||
33 | ); |
||
34 | $this->assertSame( |
||
35 | '/deleteOnUnpublish', |
||
36 | $obj->getToDelete()->first()->url |
||
37 | ); |
||
40 |