amLoggedAs(['email' => 'thegrumpydictator@gmail.com', 'password' => 'james']); } /** * @param FunctionalTester $I */ public function index(FunctionalTester $I) { $I->wantTo('search for "salary"'); $I->amOnPage('/search?q=salary'); $I->see('Transactions'); $I->see('Results for "salary"'); } /** * @param FunctionalTester $I */ public function indexNoQuery(FunctionalTester $I) { $I->wantTo('Search for empty string'); $I->amOnPage('/search?q='); $I->see('Search for ""'); } }