Covered the final lines.

This commit is contained in:
James Cole
2014-12-31 08:11:00 +01:00
parent 64311da4b4
commit 6d03ddadcc
3 changed files with 55 additions and 5 deletions

View File

@@ -50,15 +50,15 @@ class HomeControllerCest
*/
public function indexWithPrefs(FunctionalTester $I)
{
$I->wantTo('see the home page of Firefly using pre-set accounts');
\Preference::whereName('frontPageAccounts')->delete();
\Preference::create(
[
'user_id' => 1,
'name' => 'frontPageAccounts',
'data' => '[1,2]'
'data' => [1,2]
]
);
$I->wantTo('see the home page of Firefly using pre-set accounts');
$I->amOnPage('/');
$I->canSeeResponseCodeIs(200);
$I->see('Firefly');