Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / admin_toolbar / src / Tests / AdminToolbarAlterTest.php
1 <?php
2
3 namespace Drupal\admin_toolbar\Tests;
4
5 use Drupal\simpletest\WebTestBase;
6
7 /**
8  * Test the existence of Admin Toolbar module.
9  *
10  * @group admin_toolbar
11  */
12 class AdminToolbarAlterTest extends WebTestBase {
13
14   /**
15    * Modules to enable.
16    *
17    * @var array
18    */
19   public static $modules = ['toolbar', 'breakpoint', 'admin_toolbar'];
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
34     // Create and log in an administrative user.
35     $this->adminUser = $this->drupalCreateUser([
36       'access toolbar',
37       'access administration pages',
38     ]);
39     $this->drupalLogin($this->adminUser);
40   }
41
42   /**
43    * Tests for a the hover of sub menus.
44    */
45   public function testAdminToolbar() {
46     // Assert that expanded links are present in the HTML.
47     $this->assertRaw('class="toolbar-icon toolbar-icon-user-admin-index"');
48   }
49
50 }