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() |
||
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 |