You are here

protected function FpmTestBase::getProperty in Feeds Paragraphs 8

Returns a protected, private property of an object.

Parameters

mixed $object:

string $property:

Return value

mixed

1 call to FpmTestBase::getProperty()
TestImporter::testAppendToUpdate in tests/src/Unit/TestImporter.php
@covers ::appendToUpdate

File

tests/src/Unit/FpmTestBase.php, line 330

Class

FpmTestBase

Namespace

Drupal\Tests\feeds_para_mapper\Unit

Code

protected function getProperty($object, $property) {
  $ref = new \ReflectionObject($object);
  $prop = $ref
    ->getProperty($property);
  $prop
    ->setAccessible(true);
  return $prop
    ->getValue($object);
}