
| Current Path : /var/www/html/dataninja.cn/core/modules/system/tests/src/Functional/Theme/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/dataninja.cn/core/modules/system/tests/src/Functional/Theme/FastTest.php |
<?php
namespace Drupal\Tests\system\Functional\Theme;
use Drupal\Tests\BrowserTestBase;
/**
* Tests autocompletion not loading registry.
*
* @group Theme
*/
class FastTest extends BrowserTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = ['theme_test'];
protected function setUp() {
parent::setUp();
$this->account = $this->drupalCreateUser(['access user profiles']);
}
/**
* Tests access to user autocompletion and verify the correct results.
*/
public function testUserAutocomplete() {
$this->drupalLogin($this->account);
$this->drupalGet('user/autocomplete', ['query' => ['q' => $this->account->getAccountName()]]);
$this->assertRaw($this->account->getAccountName());
$this->assertNoText('registry initialized', 'The registry was not initialized');
}
}