You are here

public function sessionCookieLifetimeTestCase::testLifetimeBrowserSession in Session cookie lifetime 7

Test Browser session lifetime session cookie functionality.

File

tests/session_cookie_lifetime.test, line 26

Class

sessionCookieLifetimeTestCase

Code

public function testLifetimeBrowserSession() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet('admin/config/system/session_cookie_lifetime');
  $post = array(
    'session_cookie_lifetime_type' => 'browser_session',
  );
  $this
    ->drupalPost('admin/config/system/session_cookie_lifetime', $post, t('Save configuration'));
  $this
    ->drupalLogout();
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->assertSessionExpiry(0, t('Expires tag not found'));
}