Some Code style fixes
This commit is contained in:
parent
747cc1a189
commit
b40b962628
@ -16,7 +16,7 @@ $frameworkPath = dirname(__FILE__) . '/vendor/yiisoft/yii2';
|
||||
if (!is_dir($frameworkPath)) {
|
||||
echo '<h1>Error</h1>';
|
||||
echo '<p><strong>The path to yii framework seems to be incorrect.</strong></p>';
|
||||
echo '<p>You need to install Yii framework via composer or adjust the framework path in file <abbr title="' . __FILE__ . '">' . basename(__FILE__) .'</abbr>.</p>';
|
||||
echo '<p>You need to install Yii framework via composer or adjust the framework path in file <abbr title="' . __FILE__ . '">' . basename(__FILE__) . '</abbr>.</p>';
|
||||
echo '<p>Please refer to the <abbr title="' . dirname(__FILE__) . '/README.md">README</abbr> on how to install Yii.</p>';
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user