function CallableResolverTest::setUp

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php \Drupal\Tests\Core\Utility\CallableResolverTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php, line 30

Class

CallableResolverTest
@coversDefaultClass \Drupal\Core\Utility\CallableResolver @group Utility

Namespace

Drupal\Tests\Core\Utility

Code

protected function setUp() : void {
    parent::setUp();
    $container = new ContainerBuilder();
    $container->set('test_service', $this);
    $class_resolver = new ClassResolver($container);
    $this->resolver = new CallableResolver($class_resolver);
}

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