public function FastTest::testUserAutocomplete in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/Theme/FastTest.php \Drupal\Tests\system\Functional\Theme\FastTest::testUserAutocomplete()
Tests access to user autocompletion and verify the correct results.
File
- core/
modules/ system/ tests/ src/ Functional/ Theme/ FastTest.php, line 34
Class
- FastTest
- Tests autocompletion not loading registry.
Namespace
Drupal\Tests\system\Functional\ThemeCode
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');
}