File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3232 "php" : " ^8.2" ,
3333 "illuminate/support" : " ^12.0" ,
3434 "illuminate/routing" : " ^12.0" ,
35- "illuminate/view" : " ^12.0"
35+ "illuminate/view" : " ^12.0" ,
36+ "livewire/blaze" : " ^1.0"
3637 },
3738 "require-dev" : {
3839 "orchestra/testbench" : " ^10.0" ,
6364 "pestphp/pest-plugin" : true
6465 }
6566 }
66- }
67+ }
Original file line number Diff line number Diff line change 264264 * Ensures an unverified user is not logged in, does not enter two-factor flow,
265265 * and dispatches AuthKitEmailVerificationRequired.
266266 */
267- it ('returns 403 and dispatches AuthKitEmailVerificationRequired when email verification is required ' , function () {
267+ it ('returns 201 and dispatches AuthKitEmailVerificationRequired when email verification is required ' , function () {
268268 Event::fake ();
269269
270270 Config::set ('authkit.two_factor.enabled ' , true );
291291
292292 expect ($ result )->toBeInstanceOf (AuthKitActionResult::class)
293293 ->and ($ result ->ok )->toBeFalse ()
294- ->and ($ result ->status )->toBe (403 )
294+ ->and ($ result ->status )->toBe (201 )
295295 ->and ($ result ->flow ?->is('email_verification_required ' ))->toBeTrue ()
296296 ->and ($ result ->payload ?->get('email ' ))->toBe ('michael@example.com ' )
297297 ->and ($ result ->payload ?->get('driver ' ))->toBe ('link ' )
You can’t perform that action at this time.
0 commit comments