FastTest.php in Zircon Profile 8.0
Same filename and directory in other branches
Contains \Drupal\system\Tests\Theme\FastTest.
Namespace
Drupal\system\Tests\ThemeFile
core/modules/system/src/Tests/Theme/FastTest.phpView source
<?php
/**
* @file
* Contains \Drupal\system\Tests\Theme\FastTest.
*/
namespace Drupal\system\Tests\Theme;
use Drupal\simpletest\WebTestBase;
/**
* Tests autocompletion not loading registry.
*
* @group Theme
*/
class FastTest extends WebTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = array(
'theme_test',
);
protected function setUp() {
parent::setUp();
$this->account = $this
->drupalCreateUser(array(
'access user profiles',
));
}
/**
* Tests access to user autocompletion and verify the correct results.
*/
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');
}
}