protected function BufferLoggerTest::setPrivatePropertyValue in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 tests/src/Kernel/BufferLoggerTest.php \Drupal\Tests\tmgmt_smartling\Kernel\BufferLoggerTest::setPrivatePropertyValue()
2 calls to BufferLoggerTest::setPrivatePropertyValue()
- BufferLoggerTest::setUp in tests/
src/ Kernel/ BufferLoggerTest.php - BufferLoggerTest::testLog in tests/
src/ Kernel/ BufferLoggerTest.php
File
- tests/
src/ Kernel/ BufferLoggerTest.php, line 68
Class
- BufferLoggerTest
- Test BufferLogger.
Namespace
Drupal\Tests\tmgmt_smartling\KernelCode
protected function setPrivatePropertyValue($object, $property, $value) {
$reflection = new \ReflectionClass($object);
$property = $reflection
->getProperty($property);
$property
->setAccessible(true);
$property
->setValue($object, $value);
}