function TaxonomyTermPageVariableDeprecationTest::setUp

Overrides TaxonomyTestBase::setUp

File

core/modules/taxonomy/tests/src/Functional/TaxonomyTermPageVariableDeprecationTest.php, line 26

Class

TaxonomyTermPageVariableDeprecationTest
Tests page variable deprecation.

Namespace

Drupal\Tests\taxonomy\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->createVocabulary([
    'vid' => 'test_page_variable',
  ]);
  EntityViewMode::create([
    'id' => 'taxonomy_term.test_page_variable',
    'targetEntityType' => 'taxonomy_term',
    'status' => TRUE,
    'enabled' => TRUE,
    'label' => 'Test page variable',
  ])->save();
}

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