Passed
Pull Request — master (#133)
by
unknown
01:55
created

SiteTreePublishingEngineTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 17
c 2
b 0
f 0
dl 0
loc 29
rs 10
wmc 2
1
<?php
2
//
3
//namespace SilverStripe\StaticPublishQueue\Test;
4
//
5
//use SilverStripe\Dev\SapphireTest;
6
//use SilverStripe\StaticPublishQueue\Test\SiteTreePublishingEngineTest\Model\StaticPublishingTriggerPage;
7
//
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
//        );
38
//    }
39
//}
40