function TaxonomyTermPageVariableDeprecationTest::setUp
Same name in this branch
- main core/modules/taxonomy/tests/src/Functional/TaxonomyTermPageVariableDeprecationTest.php \Drupal\Tests\taxonomy\Functional\TaxonomyTermPageVariableDeprecationTest::setUp()
Same name and namespace in other branches
- 11.x core/modules/taxonomy/tests/src/Functional/TaxonomyTermPageVariableDeprecationTest.php \Drupal\Tests\taxonomy\Functional\TaxonomyTermPageVariableDeprecationTest::setUp()
Overrides TaxonomyTestBase::setUp
File
-
core/
modules/ taxonomy/ tests/ src/ Kernel/ TaxonomyTermPageVariableDeprecationTest.php, line 25
Class
- TaxonomyTermPageVariableDeprecationTest
- Tests page variable deprecation.
Namespace
Drupal\Tests\taxonomy\KernelCode
protected function setUp() : void {
parent::setUp();
\Drupal::service(ThemeInstallerInterface::class)->install([
'test_theme',
]);
$this->config('system.theme')
->set('default', 'test_theme')
->save();
$this->setUpCurrentUser(permissions: [
'access content',
]);
$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.