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