public function actionLogout() { $auth = new Auth(); if ($auth->logout()) { $this->addMessage('user', 'logout_succesfull', Message::INFO); } return $this->redirect('/admin/user/auth/login'); }
public function testLogout() { $auth = new Auth(); $result = $auth->logout(); $this->assertTrue($result); }