Code Duplication    Length = 9-10 lines in 3 locations

src/Kunstmaan/MediaBundle/Tests/unit/Helper/FolderManagerTest.php 3 locations

@@ 71-80 (lines=10) @@
68
        $this->object = new FolderManager($this->repository);
69
    }
70
71
    public function testGetFolderHierarchy()
72
    {
73
        $this->repository
74
            ->expects($this->once())
75
            ->method('childrenHierarchy')
76
            ->with($this->equalTo($this->folder))
77
            ->will($this->returnValue(array()));
78
79
        $this->object->getFolderHierarchy($this->folder);
80
    }
81
82
    public function testGetRootFolderFor()
83
    {
@@ 93-101 (lines=9) @@
90
        $this->assertEquals(1, $rootFolder->getId());
91
    }
92
93
    public function testGetParentIds()
94
    {
95
        $this->repository
96
            ->expects($this->once())
97
            ->method('getParentIds')
98
            ->with($this->equalTo($this->folder));
99
100
        $this->assertEquals(array(1, 2), $this->object->getParentIds($this->folder));
101
    }
102
103
    public function testGetParents()
104
    {
@@ 103-111 (lines=9) @@
100
        $this->assertEquals(array(1, 2), $this->object->getParentIds($this->folder));
101
    }
102
103
    public function testGetParents()
104
    {
105
        $this->repository
106
            ->expects($this->once())
107
            ->method('getPath')
108
            ->with($this->equalTo($this->folder));
109
110
        $this->assertEquals($this->parents, $this->object->getParents($this->folder));
111
    }
112
}
113