public function MediaBrowserEmbedCodeWidgetTest::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
1 call to MediaBrowserEmbedCodeWidgetTest::assertSession()
- MediaBrowserEmbedCodeWidgetTest::testErrorMessages in tests/
src/ FunctionalJavascript/ MediaBrowserEmbedCodeWidgetTest.php - Tests that an error message is displayed for malformed URLs.
File
- tests/
src/ FunctionalJavascript/ MediaBrowserEmbedCodeWidgetTest.php, line 68
Class
- MediaBrowserEmbedCodeWidgetTest
- Tests the embed code widget in the media browser.
Namespace
Drupal\Tests\lightning_media\FunctionalJavascriptCode
public function assertSession($name = NULL) {
return new WebDriverWebAssert($this
->getSession($name), $this->baseUrl);
}