protected function FeedsReflectionTrait::callProtectedMethod in Feeds 8.3
Calls a protected method on the given object.
Parameters
object $object: The object on which to call a protected method.
string $method: The protected method to call.
array $args: The arguments to pass to the method.
Return value
mixed The result of the method call.
8 calls to FeedsReflectionTrait::callProtectedMethod()
- EntityProcessorBaseTest::testCleanWithDeleteAction in tests/
src/ Kernel/ Feeds/ Processor/ EntityProcessorBaseTest.php - @covers ::clean
- EntityProcessorBaseTest::testCleanWithKeepNonExistent in tests/
src/ Kernel/ Feeds/ Processor/ EntityProcessorBaseTest.php - @covers ::clean
- EntityProcessorBaseTest::testCleanWithUnpublishAction in tests/
src/ Kernel/ Feeds/ Processor/ EntityProcessorBaseTest.php - @covers ::clean
- EntityProcessorBaseTest::testMapWithEmptySource in tests/
src/ Kernel/ Feeds/ Processor/ EntityProcessorBaseTest.php - @covers ::map
- EntityProcessorBaseTest::testOnFeedDeleteMultiple in tests/
src/ Kernel/ Feeds/ Processor/ EntityProcessorBaseTest.php - @covers ::onFeedDeleteMultiple
File
- tests/
src/ Traits/ FeedsReflectionTrait.php, line 76
Class
- FeedsReflectionTrait
- Trait for using reflection in tests.
Namespace
Drupal\Tests\feeds\TraitsCode
protected function callProtectedMethod($object, $method, array $args = []) {
$closure = $this
->getProtectedClosure($object, $method);
return call_user_func_array($closure, $args);
}