You are here

ChosenFormTest.php in Chosen 8.2

Same filename and directory in other branches
  1. 3.0.x tests/src/Functional/ChosenFormTest.php

File

tests/src/Functional/ChosenFormTest.php
View source
<?php

namespace Drupal\Tests\chosen\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Chosen form API test.
 *
 * @group chosen
 */
class ChosenFormTest extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = [
    'chosen',
    'chosen_test',
  ];

  /**
   * Test the form page.
   */
  public function testFormPage() {
    $this
      ->drupalGet('chosen-test');
    $this
      ->assertText('Select');
    $this
      ->assertSession()
      ->elementExists('css', 'select#edit-select.chosen-enable');
  }

}

Classes

Namesort descending Description
ChosenFormTest Chosen form API test.