You are here

protected function ControllerBaseTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Controller/ControllerBaseTest.php \Drupal\Tests\Core\Controller\ControllerBaseTest::setUp()
  2. 9 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 21

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');
}