Code Duplication    Length = 12-12 lines in 2 locations

tests/Entity/BoxTest.php 1 location

@@ 35-46 (lines=12) @@
32
        $this->assertEquals(0, count($boxes));
33
    }
34
35
    private function setPage($text = 'test')
36
    {
37
        $page = new \WebCMS\Entity\Page();
38
        $page->setTitle($text);
39
        $page->setPresenter($text);
40
        $page->setPath($text);
41
        $page->setVisible(true);
42
        $page->setDefault(true);
43
        $page->setClass('');
44
45
        return $page;
46
    }
47
48
    private function initBox()
49
    {

tests/Entity/PermissionTest.php 1 location

@@ 47-58 (lines=12) @@
44
        $this->permission->setResource('Resource');
45
    }
46
47
    private function setPage($text = 'test')
48
    {
49
        $page = new \WebCMS\Entity\Page();
50
        $page->setTitle($text);
51
        $page->setPresenter($text);
52
        $page->setPath($text);
53
        $page->setVisible(true);
54
        $page->setDefault(true);
55
        $page->setClass('');
56
57
        return $page;
58
    }
59
}
60