You are here

protected function FpmTestBase::getMethod in Feeds Paragraphs 8

Calls a protected method on an object.

Parameters

string $class:

string $name:

Return value

\ReflectionMethod

20 calls to FpmTestBase::getMethod()
TestImporter::testAppendParagraphs in tests/src/Unit/TestImporter.php
@covers ::appendParagraphs
TestImporter::testAppendToUpdate in tests/src/Unit/TestImporter.php
@covers ::appendToUpdate
TestImporter::testCheckValuesChanges in tests/src/Unit/TestImporter.php
@covers ::checkValuesChanges
TestImporter::testCreateParagraph in tests/src/Unit/TestImporter.php
@covers ::createParagraph
TestImporter::testCreateParagraphs in tests/src/Unit/TestImporter.php
@covers ::createParagraphs

... See full list

File

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

Class

FpmTestBase

Namespace

Drupal\Tests\feeds_para_mapper\Unit

Code

protected function getMethod($class, $name) {
  try {
    $class = new ReflectionClass($class);
  } catch (\ReflectionException $e) {
  }
  $method = $class
    ->getMethod($name);
  $method
    ->setAccessible(TRUE);
  return $method;
}