user(); $trueConfig = new Configuration; $trueConfig->data = true; $falsePreference = new Preference; $falsePreference->data = true; Preferences::shouldReceive('get')->withArgs(['user_confirmed',false])->andReturn($falsePreference); FireflyConfig::shouldReceive('get')->withArgs(['must_confirm_account', false])->once()->andReturn($trueConfig); $this->call('GET', route('confirmation_error')); $this->assertResponseStatus(200); $this->see('has been sent to the address you used during your registration'); } /** * @covers \FireflyIII\Http\Controllers\Auth\ConfirmationController::doConfirmation * Implement testDoConfirmation(). */ public function testDoConfirmation() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); } /** * @covers \FireflyIII\Http\Controllers\Auth\ConfirmationController::resendConfirmation * Implement testResendConfirmation(). */ public function testResendConfirmation() { // 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() { } }