forcing user component to logout
This commit is contained in:
parent
d9ff05cb75
commit
d4b50fcf06
@ -11,6 +11,12 @@ class LoginFormTest extends TestCase
|
|||||||
|
|
||||||
use \Codeception\Specify;
|
use \Codeception\Specify;
|
||||||
|
|
||||||
|
public function tearDown()
|
||||||
|
{
|
||||||
|
Yii::$app->user->logout();
|
||||||
|
parent::tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
public function testLoginNoUser()
|
public function testLoginNoUser()
|
||||||
{
|
{
|
||||||
$model = $this->mockUser(null);
|
$model = $this->mockUser(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user