You are here

public function ImageBrowserTest::assertSession in Lightning Media 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/FunctionalJavascript/ImageBrowserTest.php \Drupal\Tests\lightning_media\FunctionalJavascript\ImageBrowserTest::assertSession()

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 ImageBrowserTest::assertSession()
ImageBrowserTest::testUpload in tests/src/FunctionalJavascript/ImageBrowserTest.php
Tests uploading an image in the image browser.

File

tests/src/FunctionalJavascript/ImageBrowserTest.php, line 113

Class

ImageBrowserTest
Tests the image browser shipped with Lightning Media Image.

Namespace

Drupal\Tests\lightning_media\FunctionalJavascript

Code

public function assertSession($name = NULL) {
  return new WebDriverWebAssert($this
    ->getSession($name), $this->baseUrl);
}