You are here

private function CkEditorMediaBrowserTest::getItems in Lightning Media 8.2

Returns all selectable items in the media browser.

Return value

\Behat\Mink\Element\NodeElement[] The selectable items.

5 calls to CkEditorMediaBrowserTest::getItems()
CkEditorMediaBrowserTest::testDocumentEmbed in tests/src/ExistingSiteJavascript/CkEditorMediaBrowserTest.php
Tests that the image embed plugin is not used to embed a document.
CkEditorMediaBrowserTest::testEditEmbed in tests/src/ExistingSiteJavascript/CkEditorMediaBrowserTest.php
Tests that the entity embed dialog opens when editing a pre-existing embed.
CkEditorMediaBrowserTest::testExposedFilters in tests/src/ExistingSiteJavascript/CkEditorMediaBrowserTest.php
Tests exposed filters in the media browser.
CkEditorMediaBrowserTest::testImageEmbed in tests/src/ExistingSiteJavascript/CkEditorMediaBrowserTest.php
Tests that the image embed plugin is used to embed an image.
CkEditorMediaBrowserTest::testUnlimitedCardinality in tests/src/ExistingSiteJavascript/CkEditorMediaBrowserTest.php
Tests that cardinality is never enforced in the media browser.

File

tests/src/ExistingSiteJavascript/CkEditorMediaBrowserTest.php, line 293

Class

CkEditorMediaBrowserTest
@group lightning @group lightning_media

Namespace

Drupal\Tests\lightning_media\ExistingSiteJavascript

Code

private function getItems() {
  return $this
    ->getSession()
    ->getPage()
    ->findAll('css', '[data-selectable]');
}