public function ImprovedMultiSelectTests::testImsLoadSelectors in Improved Multi Select 8
Test improved_multi_select_load_selectors() function.
File
- src/
Tests/ Functional/ ImprovedMultiSelectTests.php, line 31
Class
- ImprovedMultiSelectTests
- Class ImprovedMultiSelectTests.
Namespace
Drupal\improved_multi_select\Tests\FunctionalCode
public function testImsLoadSelectors() {
$replace_all = FALSE;
$selectors = [];
$jquery_selectors = improved_multi_select_load_selectors($replace_all, $selectors);
$this
->assertIdentical($jquery_selectors, [
'select[multiple]',
]);
$replace_all = TRUE;
$jquery_selectors = improved_multi_select_load_selectors($replace_all, $selectors);
$this
->assertIdentical($jquery_selectors, [
'select[multiple]',
]);
$selectors = [
'test_selector',
];
$jquery_selectors = improved_multi_select_load_selectors($replace_all, $selectors);
$this
->assertIdentical($jquery_selectors, [
'select[multiple]',
]);
$replace_all = FALSE;
$jquery_selectors = improved_multi_select_load_selectors($replace_all, $selectors);
$this
->assertIdentical($jquery_selectors, [
'test_selector',
]);
}