function CallableResolverTest::testCallbackResolverExceptionHandling
Same name in other branches
- 11.x core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php \Drupal\Tests\Core\Utility\CallableResolverTest::testCallbackResolverExceptionHandling()
@dataProvider callableResolverExceptionHandlingTestCases @covers ::getCallableFromDefinition
File
-
core/
tests/ Drupal/ Tests/ Core/ Utility/ CallableResolverTest.php, line 123
Class
- CallableResolverTest
- @coversDefaultClass \Drupal\Core\Utility\CallableResolver @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public function testCallbackResolverExceptionHandling($definition, $exception_class, $exception_message) : void {
$this->expectException($exception_class);
$this->expectExceptionMessage($exception_message);
$this->resolver
->getCallableFromDefinition($definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.