Code Duplication    Length = 9-10 lines in 2 locations

eZ/Bundle/EzPublishCoreBundle/Tests/Cache/Http/InstantCachePurgerTest.php 1 location

@@ 16-25 (lines=10) @@
13
14
class InstantCachePurgerTest extends BaseTest
15
{
16
    public function testClear()
17
    {
18
        $this
19
            ->purgeClient
20
            ->expects($this->once())
21
            ->method('purgeAll');
22
23
        $purger = new InstantCachePurger($this->purgeClient, $this->contentService, $this->eventDispatcher, $this->repository);
24
        $purger->clear('cache/dir/');
25
    }
26
}
27

eZ/Publish/Core/MVC/Symfony/Cache/Tests/Http/InstantCachePurgerTest.php 1 location

@@ 90-98 (lines=9) @@
87
        $this->assertSame($locationIds, $purger->purge($locationIds));
88
    }
89
90
    public function testPurgeAll()
91
    {
92
        $this->purgeClient
93
            ->expects($this->once())
94
            ->method('purgeAll');
95
96
        $purger = new InstantCachePurger($this->purgeClient, $this->contentService, $this->eventDispatcher, $this->repository);
97
        $purger->purgeAll();
98
    }
99
100
    public function testPurgeForContent()
101
    {