function MediaLibraryTestBase::assertMediaLibraryTable

Same name 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()
  3. 11.x 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"]');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.