Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / admin_toolbar / admin_toolbar_tools / tests / src / Functional / AdminToolbarToolsAlterTest.php
1 <?php
2
3 namespace Drupal\Tests\admin_toolbar_tools\Functional;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Tests for the existence of Admin Toolbar tools new links.
9  *
10  * @group admin_toolbar
11  */
12 class AdminToolbarToolsAlterTest extends BrowserTestBase {
13
14   /**
15    * Modules to enable.
16    *
17    * @var array
18    */
19   protected static $modules = [
20     'toolbar',
21     'admin_toolbar',
22     'admin_toolbar_tools',
23   ];
24
25   /**
26    * A test user with permission to access the administrative toolbar.
27    *
28    * @var \Drupal\user\UserInterface
29    */
30   protected $adminUser;
31
32   /**
33    * {@inheritdoc}
34    */
35   protected function setUp() {
36     parent::setUp();
37     // Create and log in an administrative user.
38     $this->adminUser = $this->drupalCreateUser([
39       'access toolbar',
40       'access administration pages',
41       'administer site configuration',
42     ]);
43     $this->drupalLogin($this->adminUser);
44   }
45
46   /**
47    * Tests for the hover of sub menus.
48    */
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"');
52   }
53
54 }