AdminToolbarToolsAlterTest.php in Admin Toolbar 3.x
File
admin_toolbar_tools/tests/src/Functional/AdminToolbarToolsAlterTest.php
View source
<?php
namespace Drupal\Tests\admin_toolbar_tools\Functional;
use Drupal\Tests\BrowserTestBase;
class AdminToolbarToolsAlterTest extends BrowserTestBase {
protected static $modules = [
'toolbar',
'admin_toolbar',
'admin_toolbar_tools',
];
protected $defaultTheme = 'stark';
protected $adminUser;
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'access toolbar',
'access administration pages',
'administer site configuration',
]);
$this
->drupalLogin($this->adminUser);
}
public function testAdminToolbarTools() {
$this
->assertSession()
->responseContains('class="toolbar-icon toolbar-icon-admin-toolbar-tools-flush"');
}
}