function FastTest::testUserAutocomplete
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Theme/FastTest.php \Drupal\Tests\system\Functional\Theme\FastTest::testUserAutocomplete()
- 10 core/modules/system/tests/src/Functional/Theme/FastTest.php \Drupal\Tests\system\Functional\Theme\FastTest::testUserAutocomplete()
- 11.x 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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.