Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / system / tests / src / Functional / Theme / FastTest.php
1 <?php
2
3 namespace Drupal\Tests\system\Functional\Theme;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Tests autocompletion not loading registry.
9  *
10  * @group Theme
11  */
12 class FastTest extends BrowserTestBase {
13
14   /**
15    * Modules to enable.
16    *
17    * @var array
18    */
19   public static $modules = ['theme_test'];
20
21   protected function setUp() {
22     parent::setUp();
23     $this->account = $this->drupalCreateUser(['access user profiles']);
24   }
25
26   /**
27    * Tests access to user autocompletion and verify the correct results.
28    */
29   public function testUserAutocomplete() {
30     $this->drupalLogin($this->account);
31     $this->drupalGet('user/autocomplete', ['query' => ['q' => $this->account->getUsername()]]);
32     $this->assertRaw($this->account->getUsername());
33     $this->assertNoText('registry initialized', 'The registry was not initialized');
34   }
35
36 }