protected function PerVocabularySettingsTest::setUp in Simplify 8
Overrides BrowserTestBase::setUp
File
- src/
Tests/ PerVocabularySettingsTest.php, line 38
Class
- PerVocabularySettingsTest
- Test simplify per vocabulary settings.
Namespace
Drupal\simplify\TestsCode
protected function setUp() {
parent::setUp();
$admin_user = $this
->drupalCreateUser([
'administer url aliases',
'administer taxonomy',
'administer simplify',
]);
$this
->drupalLogin($admin_user);
// Create a vocabulary.
$vocabulary = Vocabulary::create([
'name' => $this
->randomMachineName(),
'description' => $this
->randomMachineName(),
'vid' => 'testing_vocabulary',
]);
$vocabulary
->save();
}