octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
forcing user component to logout
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 1 changed files with 6 additions and 0 deletions
@@ -11,6 +11,12 @@ class LoginFormTest extends TestCase
|
||||
|
||||
use \Codeception\Specify;
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
Yii::$app->user->logout();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
public function testLoginNoUser()
|
||||
{
|
||||
$model = $this->mockUser(null);
|
||||
|
||||
Reference in New Issue
Block a user