protected function ProcessorTestTrait::invokeMethod in Search API 8
Invokes a method on the processor.
Parameters
string $method_name: The method's name.
array $args: (optional) The arguments to pass in the method call.
Return value
mixed Whatever the invoked method returned.
18 calls to ProcessorTestTrait::invokeMethod()
- HtmlFilterTest::testAltConfiguration in tests/
src/ Unit/ Processor/ HtmlFilterTest.php - Tests preprocessing field values with "alt" settings.
- HtmlFilterTest::testIsNullConditions in tests/
src/ Unit/ Processor/ HtmlFilterTest.php - Tests whether "IS NULL" conditions are correctly kept.
- HtmlFilterTest::testStringProcessing in tests/
src/ Unit/ Processor/ HtmlFilterTest.php - Tests whether strings are correctly handled.
- HtmlFilterTest::testTagConfiguration in tests/
src/ Unit/ Processor/ HtmlFilterTest.php - Tests preprocessing field values with "alt" settings.
- HtmlFilterTest::testTitleConfiguration in tests/
src/ Unit/ Processor/ HtmlFilterTest.php - Tests preprocessing field values with "title" settings.
File
- tests/
src/ Unit/ Processor/ ProcessorTestTrait.php, line 28
Class
- ProcessorTestTrait
- Provides common methods for processor testing unit tests.
Namespace
Drupal\Tests\search_api\Unit\ProcessorCode
protected function invokeMethod($method_name, array $args = []) {
$class = new \ReflectionClass(get_class($this->processor));
$method = $class
->getMethod($method_name);
$method
->setAccessible(TRUE);
return $method
->invokeArgs($this->processor, $args);
}