3 namespace Drupal\admin_toolbar\Tests;
5 use Drupal\simpletest\WebTestBase;
9 * Test the existence of Admin Toolbar module.
11 * @group admin_toolbar
13 class AdminToolbarAlterTest extends WebTestBase {
20 public static $modules = ['toolbar', 'breakpoint', 'admin_toolbar'];
23 * A test user with permission to access the administrative toolbar.
25 * @var \Drupal\user\UserInterface
32 protected function setUp() {
35 // Create and log in an administrative user.
36 $this->adminUser = $this->drupalCreateUser([
38 'access administration pages',
40 $this->drupalLogin($this->adminUser);
44 * Tests for a the hover of sub menus.
46 function testAdminToolbar() {
47 // Assert that expanded links are present in the HTML.
48 $this->assertRaw('class="toolbar-icon toolbar-icon-user-admin-index"');