Commit 9f857563 by Qiang Xue

Merge pull request #2434 from Ragazzo/tests_improved

Tests improved
parents 9db3790b 96f2f6e5
...@@ -11,6 +11,12 @@ class LoginFormTest extends TestCase ...@@ -11,6 +11,12 @@ class LoginFormTest extends TestCase
use \Codeception\Specify; use \Codeception\Specify;
protected function tearDown()
{
Yii::$app->user->logout();
parent::tearDown();
}
public function testLoginNoUser() public function testLoginNoUser()
{ {
$model = $this->mockUser(null); $model = $this->mockUser(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment