|
|
@@ -33,8 +33,8 @@ class LoginFormTest extends TestCase
|
|
|
|
|
|
$this->specify('user should not be able to login with wrong password', function () use ($model) {
|
|
|
$this->assertFalse($model->login());
|
|
|
- $this->assertArrayHasKey('password',$model->errors);
|
|
|
- $this->assertTrue(Yii::$app->user->isGuest,'user should not be logged in');
|
|
|
+ $this->assertArrayHasKey('password', $model->errors);
|
|
|
+ $this->assertTrue(Yii::$app->user->isGuest, 'user should not be logged in');
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -47,7 +47,7 @@ class LoginFormTest extends TestCase
|
|
|
|
|
|
$this->specify('user should be able to login with correct credentials', function() use ($model) {
|
|
|
$this->assertTrue($model->login());
|
|
|
- $this->assertArrayNotHasKey('password',$model->errors);
|
|
|
+ $this->assertArrayNotHasKey('password', $model->errors);
|
|
|
$this->assertFalse(Yii::$app->user->isGuest,'user should be logged in');
|
|
|
});
|
|
|
}
|
|
|
@@ -59,4 +59,4 @@ class LoginFormTest extends TestCase
|
|
|
return $loginForm;
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|