protected function setUp() { parent::setUp(); // Create test user and log in. $web_user = $this->drupalCreateUser(array('create page content', 'edit own page content', 'administer url aliases', 'create url aliases')); $this->drupalLogin($web_user); }
protected function setUp() { parent::setUp(); // Create a Tags vocabulary for the Article node type. $vocabulary = Vocabulary::create(['name' => t('Tags'), 'vid' => 'tags']); $vocabulary->save(); // Create and log in user. $web_user = $this->drupalCreateUser(array('administer url aliases', 'administer taxonomy', 'access administration pages')); $this->drupalLogin($web_user); }