public function testCanMarkSessionInactive() { $this->auth->newUser('tempcke', 'P@ssW0rd', '*****@*****.**'); $token = $this->auth->getTokenElement(); $_POST[$this->auth->tokenkey] = $this->auth->tokenval; $this->auth->login('tempcke', 'P@ssW0rd'); $this->auth->markSessionInactive(); $this->assertLoginStatusIs(AuthManager::SESSION_INACTIVE, 'Session should be inactive'); $this->auth->reActivate('P@ssW0rd'); $this->assertLoginStatusIs(AuthManager::SESSION_VALID, 'Session should be valid now'); }