call('GET', '/flush'); $this->assertRedirectedToRoute('index'); } /** * @covers HomeController::index * @todo Implement testIndex(). */ public function testIndex() { $this->be(new User(['email' => 'test@example.com'])); $response = $this->call('GET', '/'); $this->assertResponseOk(); $this->assertTrue(true); } /** * @covers HomeController::index * @todo Implement testIndex(). */ public function testIndexWithAccounts() { $user = new User(['email' => 'test@example.com']); $this->be($user); $pref = new Preference(['user_id' => $user->id,'name' => 'frontpageAccounts', 'data' => [1]]); $pref->save(); $response = $this->call('GET', '/'); $this->assertResponseOk(); } /** * @covers HomeController::rangeJump * @todo Implement testRangeJump(). */ public function testRangeJump() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); } /** * @covers HomeController::sessionNext * @todo Implement testSessionNext(). */ public function testSessionNext() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); } /** * @covers HomeController::sessionPrev * @todo Implement testSessionPrev(). */ public function testSessionPrev() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown() { } }