mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-26 02:04:52 +01:00
Complete phpunit tests
This commit is contained in:
parent
4303af509f
commit
b566c233e6
@ -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();
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user