You are here

function FastTest::testUserAutocomplete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Theme/FastTest.php \Drupal\system\Tests\Theme\FastTest::testUserAutocomplete()

Tests access to user autocompletion and verify the correct results.

File

core/modules/system/src/Tests/Theme/FastTest.php, line 34
Contains \Drupal\system\Tests\Theme\FastTest.

Class

FastTest
Tests autocompletion not loading registry.

Namespace

Drupal\system\Tests\Theme

Code

function testUserAutocomplete() {
  $this
    ->drupalLogin($this->account);
  $this
    ->drupalGet('user/autocomplete', array(
    'query' => array(
      'q' => $this->account
        ->getUsername(),
    ),
  ));
  $this
    ->assertRaw($this->account
    ->getUsername());
  $this
    ->assertNoText('registry initialized', 'The registry was not initialized');
}