function ArgumentsResolverTest::providerTestHandleUnresolvedArgument

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php \Drupal\Tests\Component\Utility\ArgumentsResolverTest::providerTestHandleUnresolvedArgument()
  2. 10 core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php \Drupal\Tests\Component\Utility\ArgumentsResolverTest::providerTestHandleUnresolvedArgument()
  3. 11.x core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php \Drupal\Tests\Component\Utility\ArgumentsResolverTest::providerTestHandleUnresolvedArgument()

Provides test data to testHandleUnresolvedArgument().

File

core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php, line 180

Class

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

Namespace

Drupal\Tests\Component\Utility

Code

public function providerTestHandleUnresolvedArgument() {
    $data = [];
    $data[] = [
        function ($foo) {
        },
    ];
    $data[] = [
        [
            new TestClass(),
            'access',
        ],
    ];
    $data[] = [
        'Drupal\\Tests\\Component\\Utility\\test_access_arguments_resolver_access',
    ];
    return $data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.