You are here

protected function UnitTestBase::setUp in Select (or other) 8

Same name and namespace in other branches
  1. 4.x tests/src/Unit/UnitTestBase.php \Drupal\Tests\select_or_other\Unit\UnitTestBase::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/UnitTestBase.php, line 31

Class

UnitTestBase

Namespace

Drupal\Tests\select_or_other\Unit

Code

protected function setUp() {
  parent::setUp();
  $this
    ->prepareContainer();
  $this
    ->addMockServicesToContainer();
  $this->mockBuilder = $this
    ->getMockBuilder($this
    ->getTestedClassName());
}