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

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