diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.php index f1d859c..5c184ea 100644 --- a/tests/Feature/Auth/RegistrationTest.php +++ b/tests/Feature/Auth/RegistrationTest.php @@ -1,5 +1,7 @@ get('/register'); @@ -15,5 +17,9 @@ test('new users can register', function () { ]); $this->assertAuthenticated(); + + assertTrue(auth()->user()->organisations()->count() === 1); + assertTrue(auth()->user()->ownedOrganisations()->count() === 1); + $response->assertRedirect(route('dashboard', absolute: false)); }); \ No newline at end of file