You are here

FastTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/system/src/Tests/Theme/FastTest.php

File

core/modules/system/src/Tests/Theme/FastTest.php
View 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');
  }

}

Classes

Namesort descending Description
FastTest Tests autocompletion not loading registry.