3 namespace Drupal\Tests\admin_toolbar_tools\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests for the existence of Admin Toolbar tools new links.
10 * @group admin_toolbar
12 class AdminToolbarToolsAlterTest extends BrowserTestBase {
19 protected static $modules = [
22 'admin_toolbar_tools',
26 * A test user with permission to access the administrative toolbar.
28 * @var \Drupal\user\UserInterface
35 protected function setUp() {
37 // Create and log in an administrative user.
38 $this->adminUser = $this->drupalCreateUser([
40 'access administration pages',
41 'administer site configuration',
43 $this->drupalLogin($this->adminUser);
47 * Tests for the hover of sub menus.
49 public function testAdminToolbarTools() {
50 // Assert that special menu items are present in the HTML.
51 $this->assertRaw('class="toolbar-icon toolbar-icon-admin-toolbar-tools-flush"');