You are here

protected function MediaLibraryTestBase::assertMediaLibraryTable in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::assertMediaLibraryTable()
  2. 10 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::assertMediaLibraryTable()

Asserts that the table display of the widget view is visible.

1 call to MediaLibraryTestBase::assertMediaLibraryTable()
MediaLibraryTestBase::switchToMediaLibraryTable in core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php
Switches to the table display of the widget view.

File

core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php, line 437

Class

MediaLibraryTestBase
Base class for functional tests of Media Library functionality.

Namespace

Drupal\Tests\media_library\FunctionalJavascript

Code

protected function assertMediaLibraryTable() {
  $this
    ->assertSession()
    ->elementExists('css', '.js-media-library-view[data-view-display-id="widget_table"]');
}