You are here

protected function WebAssertArgumentsTest::getSession in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Assert/WebAssertArgumentsTest.php \Drupal\Tests\Core\Assert\WebAssertArgumentsTest::getSession()

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 566

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();
}