Code Duplication    Length = 15-15 lines in 2 locations

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/BaseTest.php 1 location

@@ 97-111 (lines=15) @@
94
            ->getMockForAbstractClass();
95
    }
96
97
    protected function getPermissionResolverMock()
98
    {
99
        return $this
100
            ->getMockBuilder(PermissionResolver::class)
101
            ->setMethods(null)
102
            ->setConstructorArgs(
103
                [
104
                    $this->createMock(RoleDomainMapper::class),
105
                    $this->createMock(LimitationService::class),
106
                    $this->createMock(SPIUserHandler::class),
107
                    $this->createMock(UserReference::class),
108
                ]
109
            )
110
            ->getMock();
111
    }
112
}
113

eZ/Publish/Core/MVC/Symfony/Routing/Tests/UrlAliasGeneratorTest.php 1 location

@@ 450-464 (lines=15) @@
447
        ];
448
    }
449
450
    protected function getPermissionResolverMock()
451
    {
452
        return $this
453
            ->getMockBuilder(PermissionResolver::class)
454
            ->setMethods(null)
455
            ->setConstructorArgs(
456
                [
457
                    $this->createMock(RoleDomainMapper::class),
458
                    $this->createMock(LimitationService::class),
459
                    $this->createMock(SPIUserHandler::class),
460
                    $this->createMock(UserReference::class),
461
                ]
462
            )
463
            ->getMock();
464
    }
465
}
466