function TermContextTest::setUp

Same name and namespace in other branches
  1. 10 core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php \Drupal\Tests\taxonomy\Kernel\ContextProvider\TermContextTest::setUp()
  2. 11.x core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php \Drupal\Tests\taxonomy\Kernel\ContextProvider\TermContextTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php, line 27

Class

TermContextTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21taxonomy%21src%21ContextProvider%21TermRouteContext.php/class/TermRouteContext/9" title="Sets the current taxonomy term as a context on taxonomy term routes." class="local">\Drupal\taxonomy\ContextProvider\TermRouteContext</a>

Namespace

Drupal\Tests\taxonomy\Kernel\ContextProvider

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig([
        'filter',
    ]);
    $this->installEntitySchema('user');
    $this->installEntitySchema('taxonomy_term');
}

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