Code Duplication    Length = 10-10 lines in 2 locations

eZ/Publish/Core/Repository/Tests/Service/Integration/NameSchemaBase.php 1 location

@@ 291-300 (lines=10) @@
288
     * @param object $service
289
     * @param array $configuration
290
     */
291
    protected function setConfiguration($service, array $configuration)
292
    {
293
        $refObject = new \ReflectionObject($service);
294
        $refProperty = $refObject->getProperty('settings');
295
        $refProperty->setAccessible(true);
296
        $refProperty->setValue(
297
            $service,
298
            $configuration
299
        );
300
    }
301
}
302

eZ/Publish/Core/Repository/Tests/Service/Mock/UrlAliasTest.php 1 location

@@ 3531-3540 (lines=10) @@
3528
     * @param object $urlAliasService
3529
     * @param array $configuration
3530
     */
3531
    protected function setConfiguration($urlAliasService, array $configuration)
3532
    {
3533
        $refObject = new \ReflectionObject($urlAliasService);
3534
        $refProperty = $refObject->getProperty('settings');
3535
        $refProperty->setAccessible(true);
3536
        $refProperty->setValue(
3537
            $urlAliasService,
3538
            $configuration
3539
        );
3540
    }
3541
3542
    /**
3543
     * Returns the content service to test with $methods mocked.