mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Full coverage for home controller
This commit is contained in:
@@ -45,6 +45,25 @@ class HomeControllerCest
|
||||
$I->see('Firefly');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FunctionalTester $I
|
||||
*/
|
||||
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]'
|
||||
]
|
||||
);
|
||||
$I->amOnPage('/');
|
||||
$I->canSeeResponseCodeIs(200);
|
||||
$I->see('Firefly');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FunctionalTester $I
|
||||
*/
|
||||
|
Reference in New Issue
Block a user