public function MediaLibraryContext::assertMediaInLibrary in Lightning Media 8.2
Same name and namespace in other branches
- 8.3 tests/contexts/MediaLibraryContext.behat.inc \Acquia\LightningExtension\Context\MediaLibraryContext::assertMediaInLibrary()
Asserts that a media item is in the media library.
@Then I should see :title in the media library
Parameters
string $title: The name of the media item.
File
- tests/
contexts/ MediaLibraryContext.behat.inc, line 148
Class
Namespace
Acquia\LightningExtension\ContextCode
public function assertMediaInLibrary($title) {
$this
->visitLibrary();
$this
->assertSession()
->elementExists('named', [
'link',
$title,
]);
}