You are here

protected function TocTest::setUp in TOC API 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/TocTest.php, line 35
Contains \Drupal\Tests\toc_api\Unit\TocTest.

Class

TocTest
Tests TOC API formatter.

Namespace

Drupal\Tests\toc_api\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->container = new ContainerBuilder();
  $this->container
    ->set('toc_api.formatter', new TocFormatter());
  \Drupal::setContainer($this->container);
}