3 namespace Drupal\admin_toolbar_tools\Tests;
5 use Drupal\simpletest\WebTestBase;
8 * Tests for the existence of Admin Toolbar tools new links.
10 * @group admin_toolbar
12 class AdminToolbarToolsAlterTest extends WebTestBase {
19 public static $modules = ['toolbar', 'admin_toolbar', 'admin_toolbar_tools'];
22 * A test user with permission to access the administrative toolbar.
24 * @var \Drupal\user\UserInterface
31 protected function setUp() {
33 // Create and log in an administrative user.
34 $this->adminUser = $this->drupalCreateUser([
36 'access administration pages',
38 $this->drupalLogin($this->adminUser);
42 * Tests for the hover of sub menus.
44 public function testAdminToolbarTools() {
45 // Assert that special menu items are present in the HTML.
46 $this->assertRaw('class="toolbar-icon toolbar-icon-admin-toolbar-tools-flush"');