function ControllerBaseTest::setUp

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Controller/ControllerBaseTest.php \Drupal\Tests\Core\Controller\ControllerBaseTest::setUp()
  2. 10 core/tests/Drupal/Tests/Core/Controller/ControllerBaseTest.php \Drupal\Tests\Core\Controller\ControllerBaseTest::setUp()
  3. 11.x 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 {
    $this->controllerBase = $this->getMockForAbstractClass('Drupal\\Core\\Controller\\ControllerBase');
}

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