You are here

public function AdminToolbarAlterTest::testAdminToolbar in Admin Toolbar 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/AdminToolbarAlterTest.php \Drupal\Tests\admin_toolbar\Functional\AdminToolbarAlterTest::testAdminToolbar()
  2. 3.x tests/src/Functional/AdminToolbarAlterTest.php \Drupal\Tests\admin_toolbar\Functional\AdminToolbarAlterTest::testAdminToolbar()

Tests for a the hover of sub menus.

File

tests/src/Functional/AdminToolbarAlterTest.php, line 49

Class

AdminToolbarAlterTest
Test the existence of Admin Toolbar module.

Namespace

Drupal\Tests\admin_toolbar\Functional

Code

public function testAdminToolbar() {

  // Assert that expanded links are present in the HTML.
  $this
    ->assertSession()
    ->responseContains('class="toolbar-icon toolbar-icon-user-admin-index"');
}