ChosenFormTest.php in Chosen 8.2
Same filename and directory in other branches
Namespace
Drupal\Tests\chosen\FunctionalFile
tests/src/Functional/ChosenFormTest.phpView 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
Name![]() |
Description |
---|---|
ChosenFormTest | Chosen form API test. |