diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index a8c51585..473b0921 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -21,11 +21,12 @@ class Kernel extends ConsoleKernel * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void + * + * @codeCoverageIgnore Because no code will always remains Not Executed code */ protected function schedule(Schedule $schedule) { - // $schedule->command('inspire') - // ->hourly(); + // } /** diff --git a/tests/Feature/Auth/ForgotPasswordTest.php b/tests/Feature/Auth/ForgotPasswordTest.php index 2e1af7ad..625508a4 100644 --- a/tests/Feature/Auth/ForgotPasswordTest.php +++ b/tests/Feature/Auth/ForgotPasswordTest.php @@ -4,6 +4,7 @@ use App\User; use Illuminate\Support\Facades\Hash; +use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Password; use Illuminate\Auth\Notifications\ResetPassword; use Illuminate\Support\Facades\Notification; @@ -85,4 +86,18 @@ public function testSubmitEmailPasswordRequest() }); } + /** + * Testing submitting the email password request in Demo mode + */ + public function testSubmitEmailPasswordRequestInDemoMode() + { + Config::set('app.options.isDemoApp', true); + + $response = $this->json('POST', '/api/password/email', [ + 'email' => '' + ]); + + $response->assertStatus(401); + } + } \ No newline at end of file