Further coding standards fixes.
This commit is contained in:
parent
94c6095df3
commit
c2c3c22ff5
@ -42,7 +42,7 @@ class ContactFormTest extends TestCase
|
|||||||
expect('email file should exist', file_exists($this->getMessageFile()))->true();
|
expect('email file should exist', file_exists($this->getMessageFile()))->true();
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->specify('message should contain correct data', function () use($model) {
|
$this->specify('message should contain correct data', function () use ($model) {
|
||||||
$emailMessage = file_get_contents($this->getMessageFile());
|
$emailMessage = file_get_contents($this->getMessageFile());
|
||||||
|
|
||||||
expect('email should contain user name', $emailMessage)->contains($model->name);
|
expect('email should contain user name', $emailMessage)->contains($model->name);
|
||||||
|
@ -40,7 +40,7 @@ AppAsset::register($this);
|
|||||||
['label' => 'Contact', 'url' => ['/site/contact']],
|
['label' => 'Contact', 'url' => ['/site/contact']],
|
||||||
Yii::$app->user->isGuest ?
|
Yii::$app->user->isGuest ?
|
||||||
['label' => 'Login', 'url' => ['/site/login']] :
|
['label' => 'Login', 'url' => ['/site/login']] :
|
||||||
['label' => 'Logout (' . Yii::$app->user->identity->username . ')' ,
|
['label' => 'Logout (' . Yii::$app->user->identity->username . ')',
|
||||||
'url' => ['/site/logout'],
|
'url' => ['/site/logout'],
|
||||||
'linkOptions' => ['data-method' => 'post']],
|
'linkOptions' => ['data-method' => 'post']],
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user