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

@@ 524-538 (lines=15) @@
521
        ];
522
    }
523
524
    protected function getPermissionResolverMock()
525
    {
526
        return $this
527
            ->getMockBuilder(PermissionResolver::class)
528
            ->setMethods(null)
529
            ->setConstructorArgs(
530
                [
531
                    $this->createMock(RoleDomainMapper::class),
532
                    $this->createMock(LimitationService::class),
533
                    $this->createMock(SPIUserHandler::class),
534
                    $this->createMock(UserReference::class),
535
                ]
536
            )
537
            ->getMock();
538
    }
539
}
540