You are here

protected function WebAssertArgumentsTest::getSession in Drupal 9

Returns a mocked behat session object.

Return value

\Behat\Mink\Session The mocked session.

1 call to WebAssertArgumentsTest::getSession()
WebAssertArgumentsTest::setUp in core/tests/Drupal/Tests/Core/Assert/WebAssertArgumentsTest.php

File

core/tests/Drupal/Tests/Core/Assert/WebAssertArgumentsTest.php, line 570

Class

WebAssertArgumentsTest
Tests that calling WebAssert methods with extra arguments leads to errors.

Namespace

Drupal\Tests\Core\Assert

Code

protected function getSession() : Session {
  return $this->session
    ->reveal();
}