You are here

public function ImageBrowserCardinalityTest::assertSession in Lightning Media 8.4

Same name and namespace in other branches
  1. 8.3 modules/lightning_media_image/tests/src/FunctionalJavascript/ImageBrowserCardinalityTest.php \Drupal\Tests\lightning_media_image\FunctionalJavascript\ImageBrowserCardinalityTest::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 ImageBrowserCardinalityTest::assertSession()
ImageBrowserCardinalityTest::testCardinality in modules/lightning_media_image/tests/src/FunctionalJavascript/ImageBrowserCardinalityTest.php
Tests that cardinality is enforced in the image browser.

File

modules/lightning_media_image/tests/src/FunctionalJavascript/ImageBrowserCardinalityTest.php, line 204

Class

ImageBrowserCardinalityTest
Tests that the image browser handles field cardinality correctly.

Namespace

Drupal\Tests\lightning_media_image\FunctionalJavascript

Code

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