protected function HierarchicalTermFormatterErrorTest::setUp in Hierarchical Term Formatter 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ HierarchicalTermFormatterErrorTest.php, line 55
Class
- HierarchicalTermFormatterErrorTest
- Verifies fix for formatter Fatal error.
Namespace
Drupal\Tests\hierarchical_term_formatter\FunctionalCode
protected function setUp() {
parent::setUp();
// Create a tree we can work on.
$items = [
'1' => [
'1.1' => [
'1.1.1' => '1.1.1',
],
],
];
$this
->createTerms($items);
// Create a user with proper permissions.
$this->user = $this
->drupalCreateUser([
'preview node view modes',
]);
}