You are here

function ThemeFastTestCase::testUserAutocomplete in Drupal 7

Tests access to user autocompletion and verify the correct results.

File

modules/simpletest/tests/theme.test, line 450
Tests for the theme API.

Class

ThemeFastTestCase
Tests autocompletion not loading registry.

Code

function testUserAutocomplete() {
  $this
    ->drupalLogin($this->account);
  $this
    ->drupalGet('user/autocomplete/' . $this->account->name);
  $this
    ->assertText('registry not initialized', 'The registry was not initialized');
}