function MediaLibraryTestBase::deselectMediaItem
Same name in other branches
- 11.x core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::deselectMediaItem()
De-selects an item in the media library modal.
Parameters
int $index: The zero-based index of the item to unselect.
1 call to MediaLibraryTestBase::deselectMediaItem()
- WidgetOverflowTest::testWidgetOverflow in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetOverflowTest.php - Tests that the Media Library constrains the number of selected items.
File
-
core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ MediaLibraryTestBase.php, line 415
Class
- MediaLibraryTestBase
- Base class for functional tests of Media Library functionality.
Namespace
Drupal\Tests\media_library\FunctionalJavascriptCode
protected function deselectMediaItem(int $index) : void {
$checkboxes = $this->getCheckboxes();
$this->assertGreaterThan($index, count($checkboxes));
$checkboxes[$index]->uncheck();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.