function SessionTest::testSessionExpiration
Tests that the session doesn't expire.
Makes sure that drupal_valid_test_ua() works for multiple requests performed by the Mink browser. The SIMPLETEST_USER_AGENT cookie must always be valid.
File
- 
              core/
tests/ Drupal/ FunctionalJavascriptTests/ Core/ Session/ SessionTest.php, line 53  
Class
- SessionTest
 - Tests that sessions don't expire.
 
Namespace
Drupal\FunctionalJavascriptTests\Core\SessionCode
public function testSessionExpiration() : void {
  // Visit the front page and click the link back to the front page a large
  // number of times.
  $this->drupalGet('<front>');
  $page = $this->getSession()
    ->getPage();
  for ($i = 0; $i < 25; $i++) {
    $page->clickLink('Link to front page');
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.