public function BrowserTestBase::getSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/BrowserTestBase.php \Drupal\simpletest\BrowserTestBase::getSession()
Returns Mink session.
Parameters
string $name: (optional) Name of the session. Defaults to the active session.
Return value
\Behat\Mink\Session The active Mink session object.
3 calls to BrowserTestBase::getSession()
- BrowserTestBase::assertSession in core/
modules/ simpletest/ src/ BrowserTestBase.php - Returns WebAssert object.
- BrowserTestBase::drupalGet in core/
modules/ simpletest/ src/ BrowserTestBase.php - Retrieves a Drupal path or an absolute path.
- BrowserTestBase::prepareRequest in core/
modules/ simpletest/ src/ BrowserTestBase.php - Prepare for a request to testing site.
File
- core/
modules/ simpletest/ src/ BrowserTestBase.php, line 425 - Contains \Drupal\simpletest\BrowserTestBase.
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\simpletestCode
public function getSession($name = NULL) {
return $this->mink
->getSession($name);
}