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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.