Skip to content

Commit 82c6726

Browse files
authored
Fix RegistrationTest for Terms of Services (#632)
1 parent 04348bf commit 82c6726

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stubs/tests/RegistrationTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use App\Providers\RouteServiceProvider;
66
use Illuminate\Foundation\Testing\RefreshDatabase;
7+
use Laravel\Jetstream\Jetstream;
78
use Tests\TestCase;
89

910
class RegistrationTest extends TestCase
@@ -24,6 +25,7 @@ public function test_new_users_can_register()
2425
'email' => '[email protected]',
2526
'password' => 'password',
2627
'password_confirmation' => 'password',
28+
'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature(),
2729
]);
2830

2931
$this->assertAuthenticated();

0 commit comments

Comments
 (0)