adminUser = $this->drupalCreateUser([ 'access toolbar', 'access administration pages', ]); $this->drupalLogin($this->adminUser); } /** * Tests for a the hover of sub menus. */ public function testAdminToolbar() { // Assert that expanded links are present in the HTML. $this->assertRaw('class="toolbar-icon toolbar-icon-user-admin-index"'); } }