function ArgumentsResolverTest::testHandleUnresolvedArgument
Tests handleUnresolvedArgument() for missing arguments.
@dataProvider providerTestHandleUnresolvedArgument
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ ArgumentsResolverTest.php, line 176
Class
- ArgumentsResolverTest
- @coversDefaultClass \Drupal\Component\Utility\ArgumentsResolver[[api-linebreak]] @group Access
Namespace
Drupal\Tests\Component\UtilityCode
public function testHandleUnresolvedArgument($callable) : void {
$resolver = new ArgumentsResolver([], [], []);
$this->expectException(\RuntimeException::class);
$this->expectExceptionMessage('requires a value for the "$foo" argument.');
$resolver->getArguments($callable);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.