/**
  * Kill the session and login cookie
  */
 public function logoutAction()
 {
     $action = new \Actions\Users\Auth();
     $action->destroyToken();
     $action->destroySession();
     $this->cookies->get('token')->delete();
     $this->addMessage("You've been logged out");
 }
 /**
  * @group actions
  * @group users
  * @group auth
  */
 public function testDestroyCookieSession()
 {
     $action = new \Actions\Users\Auth();
     $this->assertTrue($action->destroyToken(1));
     $this->assertTrue($action->destroySession());
     $session = $this->di->get('session');
     $this->assertFalse(valid($session->get('user_id')));
 }