function ControllerBaseTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Controller/ControllerBaseTest.php \Drupal\Tests\Core\Controller\ControllerBaseTest::setUp()
  2. 8.9.x core/tests/Drupal/Tests/Core/Controller/ControllerBaseTest.php \Drupal\Tests\Core\Controller\ControllerBaseTest::setUp()
  3. 10 core/tests/Drupal/Tests/Core/Controller/ControllerBaseTest.php \Drupal\Tests\Core\Controller\ControllerBaseTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Controller/ControllerBaseTest.php, line 24

Class

ControllerBaseTest
Tests that the base controller class.

Namespace

Drupal\Tests\Core\Controller

Code

protected function setUp() : void {
    parent::setUp();
    $this->controllerBase = new StubControllerBase();
}

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