Skip to content

Commit

Permalink
Coding standards fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximal committed Feb 24, 2014
1 parent 4f2873c commit b560398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/basic/tests/unit/models/LoginFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testLoginNoUser()
$model->username = 'some_username';
$model->password = 'some_password';

$this->specify('user should not be able to login, when there is no identity' , function () use ($model) {
$this->specify('user should not be able to login, when there is no identity', function () use ($model) {
expect('model should not login user', $model->login())->false();
expect('user should not be logged in', Yii::$app->user->isGuest)->true();
});
Expand All @@ -51,7 +51,7 @@ public function testLoginCorrect()
$model->username = 'demo';
$model->password = 'demo';

$this->specify('user should be able to login with correct credentials', function() use ($model) {
$this->specify('user should be able to login with correct credentials', function () use ($model) {
expect('model should login user', $model->login())->true();
expect('error message should not be set', $model->errors)->hasntKey('password');
expect('user should be logged in', Yii::$app->user->isGuest)->false();
Expand All @@ -60,7 +60,7 @@ public function testLoginCorrect()

private function mockUser($user)
{
$loginForm = $this->getMock('app\models\LoginForm',['getUser']);
$loginForm = $this->getMock('app\models\LoginForm', ['getUser']);
$loginForm->expects($this->any())->method('getUser')->will($this->returnValue($user));
return $loginForm;
}
Expand Down

0 comments on commit b560398

Please sign in to comment.