eZ/Publish/Core/Repository/Tests/Service/Integration/NameSchemaBase.php 1 location
|
@@ 295-304 (lines=10) @@
|
| 292 |
|
* @param object $service |
| 293 |
|
* @param array $configuration |
| 294 |
|
*/ |
| 295 |
|
protected function setConfiguration($service, array $configuration) |
| 296 |
|
{ |
| 297 |
|
$refObject = new \ReflectionObject($service); |
| 298 |
|
$refProperty = $refObject->getProperty('settings'); |
| 299 |
|
$refProperty->setAccessible(true); |
| 300 |
|
$refProperty->setValue( |
| 301 |
|
$service, |
| 302 |
|
$configuration |
| 303 |
|
); |
| 304 |
|
} |
| 305 |
|
} |
| 306 |
|
|
eZ/Publish/Core/Repository/Tests/Service/Mock/UrlAliasTest.php 1 location
|
@@ 3532-3541 (lines=10) @@
|
| 3529 |
|
* @param object $urlAliasService |
| 3530 |
|
* @param array $configuration |
| 3531 |
|
*/ |
| 3532 |
|
protected function setConfiguration($urlAliasService, array $configuration) |
| 3533 |
|
{ |
| 3534 |
|
$refObject = new \ReflectionObject($urlAliasService); |
| 3535 |
|
$refProperty = $refObject->getProperty('settings'); |
| 3536 |
|
$refProperty->setAccessible(true); |
| 3537 |
|
$refProperty->setValue( |
| 3538 |
|
$urlAliasService, |
| 3539 |
|
$configuration |
| 3540 |
|
); |
| 3541 |
|
} |
| 3542 |
|
|
| 3543 |
|
/** |
| 3544 |
|
* Returns the content service to test with $methods mocked. |