예제 #1
0
 public function actionLogout()
 {
     $auth = new Auth();
     if ($auth->logout()) {
         $this->addMessage('user', 'logout_succesfull', Message::INFO);
     }
     return $this->redirect('/admin/user/auth/login');
 }
예제 #2
0
파일: AuthTest.php 프로젝트: pbabilas/bcode
 public function testLogout()
 {
     $auth = new Auth();
     $result = $auth->logout();
     $this->assertTrue($result);
 }