Code Duplication    Length = 9-9 lines in 2 locations

src/Kunstmaan/MediaBundle/Tests/unit/Helper/MediaManagerTest.php 2 locations

@@ 66-74 (lines=9) @@
63
        $this->assertEquals($handler, current($handlers));
64
    }
65
66
    public function testPrepareMediaWithDefaultHandler()
67
    {
68
        $media = new Media();
69
        $this->defaultHandler
70
            ->expects($this->any())
71
            ->method('prepareMedia')
72
            ->with($this->equalTo($media));
73
        $this->object->prepareMedia($media);
74
    }
75
76
    public function testPrepareMediaWithCustomHandler()
77
    {
@@ 128-136 (lines=9) @@
125
        $this->object->saveMedia($media);
126
    }
127
128
    public function testRemoveMediaWithDefaultHandler()
129
    {
130
        $media = new Media();
131
        $this->defaultHandler
132
            ->expects($this->once())
133
            ->method('removeMedia')
134
            ->with($this->equalTo($media));
135
        $this->object->removeMedia($media);
136
    }
137
138
    public function testRemoveMediaWithCustomHandler()
139
    {