3 namespace Drupal\Tests\admin_toolbar\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Test the existence of Admin Toolbar module.
10 * @group admin_toolbar
12 class AdminToolbarAlterTest extends BrowserTestBase {
19 protected static $modules = [
26 * A test user with permission to access the administrative toolbar.
28 * @var \Drupal\user\UserInterface
35 protected function setUp() {
38 // Create and log in an administrative user.
39 $this->adminUser = $this->drupalCreateUser([
41 'access administration pages',
43 $this->drupalLogin($this->adminUser);
47 * Tests for a the hover of sub menus.
49 public function testAdminToolbar() {
50 // Assert that expanded links are present in the HTML.
51 $this->assertRaw('class="toolbar-icon toolbar-icon-user-admin-index"');