You are here

protected function BufferLoggerTest::setPrivatePropertyValue in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 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\Kernel

Code

protected function setPrivatePropertyValue($object, $property, $value) {
  $reflection = new \ReflectionClass($object);
  $property = $reflection
    ->getProperty($property);
  $property
    ->setAccessible(true);
  $property
    ->setValue($object, $value);
}