Code Duplication    Length = 13-13 lines in 2 locations

tests/unit/CMS/PageTest.php 1 location

@@ 72-84 (lines=13) @@
69
        $this->assertTrue(is_object($this->page));
70
    }
71
72
    function testSaveSucceedsWithValidValues()
73
    {
74
        $site = new CMS_Site($this->kernel);
75
        $site_array = array(
76
            'name' => 'Tester',
77
            'url' => 'http://localhost/',
78
            'cc_license' => '1'
79
        );
80
        $site->save($site_array);
81
        $this->assertEquals($site_array['name'], $site->get('name'));
82
        $this->assertEquals($site_array['url'], $site->get('url'));
83
        $this->assertEquals($site_array['cc_license'], $site->get('cc_license'));
84
    }
85
86
    function testSaveWithSuccessWithTemplateWithKeywords()
87
    {

tests/unit/CMS/SiteTest.php 1 location

@@ 33-45 (lines=13) @@
30
        $this->assertTrue(is_object($site));
31
    }
32
33
    function testSaveSucceedsWithValidValues()
34
    {
35
        $site = new CMS_Site($this->kernel);
36
        $site_array = array(
37
            'name' => 'Tester',
38
            'url' => 'http://localhost/',
39
            'cc_license' => '1'
40
        );
41
        $site->save($site_array);
42
        $this->assertEquals($site_array['name'], $site->get('name'));
43
        $this->assertEquals($site_array['url'], $site->get('url'));
44
        $this->assertEquals($site_array['cc_license'], $site->get('cc_license'));
45
    }
46
}
47