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