protected function FeedsReflectionTrait::getProtectedClosure in Feeds 8.3
Returns a dynamically created closure for the object's method.
Parameters
object $object: The object for which to get a closure.
string $method: The object's method for which to get a closure.
Return value
\Closure A Closure object.
33 calls to FeedsReflectionTrait::getProtectedClosure()
- BooleanTest::testPrepareValue in tests/
src/ Unit/ Feeds/ Target/ BooleanTest.php - @covers ::prepareValue
- ConfigEntityReferenceTest::testPrepareValue in tests/
src/ Unit/ Feeds/ Target/ ConfigEntityReferenceTest.php - Tests finding an entity by ID.
- ConfigEntityReferenceTest::testPrepareValueReferenceNotFound in tests/
src/ Unit/ Feeds/ Target/ ConfigEntityReferenceTest.php - Tests prepareValue() method without match.
- DateRangeTest::testPrepareValue in tests/
src/ Unit/ Feeds/ Target/ DateRangeTest.php - @covers ::prepareValue
- DateTimeTest::testGetTimezoneConfiguration in tests/
src/ Unit/ Feeds/ Target/ DateTimeTest.php - Test the timezone configuration.
File
- tests/
src/ Traits/ FeedsReflectionTrait.php, line 59
Class
- FeedsReflectionTrait
- Trait for using reflection in tests.
Namespace
Drupal\Tests\feeds\TraitsCode
protected function getProtectedClosure($object, $method) {
return $this
->getMethod(get_class($object), $method)
->getClosure($object);
}