public function MediaBrowserWidgetDisambiguationTest::assertSession in Lightning Media 8.3
Returns WebAssert object.
Parameters
string $name: (optional) Name of the session. Defaults to the active session.
Return value
\Drupal\Tests\WebAssert A new web-assert option for asserting the presence of elements with.
Overrides WebDriverTestBase::assertSession
2 calls to MediaBrowserWidgetDisambiguationTest::assertSession()
- MediaBrowserWidgetDisambiguationTest::testEmbed in tests/
src/ FunctionalJavascript/ MediaBrowserWidgetDisambiguationTest.php - Tests that select is shown when media bundle is ambiguous.
- MediaBrowserWidgetDisambiguationTest::testUpload in tests/
src/ FunctionalJavascript/ MediaBrowserWidgetDisambiguationTest.php - Tests that select is shown when media bundle is ambiguous.
File
- tests/
src/ FunctionalJavascript/ MediaBrowserWidgetDisambiguationTest.php, line 184
Class
- MediaBrowserWidgetDisambiguationTest
- Tests media type disambiguation in the media browser.
Namespace
Drupal\Tests\lightning_media\FunctionalJavascriptCode
public function assertSession($name = NULL) {
return new WebDriverWebAssert($this
->getSession($name), $this->baseUrl);
}