You are here

public function ArgumentsResolverTest::testGetArgument in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php \Drupal\Tests\Component\Utility\ArgumentsResolverTest::testGetArgument()

Tests the getArgument() method.

@dataProvider providerTestGetArgument

File

core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php, line 31
Contains \Drupal\Tests\Component\Utility\ArgumentsResolverTest.

Class

ArgumentsResolverTest
@coversDefaultClass \Drupal\Component\Utility\ArgumentsResolver @group Access

Namespace

Drupal\Tests\Component\Utility

Code

public function testGetArgument($callable, $scalars, $objects, $wildcards, $expected) {
  $arguments = (new ArgumentsResolver($scalars, $objects, $wildcards))
    ->getArguments($callable);
  $this
    ->assertSame($expected, $arguments);
}