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',
37 'administer site configuration',
39 $this->drupalLogin($this->adminUser);
43 * Tests for the hover of sub menus.
45 public function testAdminToolbarTools() {
46 // Assert that special menu items are present in the HTML.
47 $this->assertRaw('class="toolbar-icon toolbar-icon-admin-toolbar-tools-flush"');