function ArgumentsResolverTest::providerTestHandleUnresolvedArgument

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php \Drupal\Tests\Component\Utility\ArgumentsResolverTest::providerTestHandleUnresolvedArgument()
  2. 8.9.x 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 186

Class

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

Namespace

Drupal\Tests\Component\Utility

Code

public static 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.