forked from MGeurts/genealogy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marc Geurts
committed
Jan 22, 2024
1 parent
ee298bb
commit 7a17c05
Showing
15 changed files
with
53 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ class InviteTeamMemberTest extends TestCase | |
|
||
public function test_team_members_can_be_invited_to_team(): void | ||
{ | ||
if (! Features::sendsTeamInvitations()) { | ||
if (!Features::sendsTeamInvitations()) { | ||
$this->markTestSkipped('Team invitations not enabled.'); | ||
} | ||
|
||
|
@@ -28,7 +28,7 @@ public function test_team_members_can_be_invited_to_team(): void | |
$component = Livewire::test(TeamMemberManager::class, ['team' => $user->currentTeam]) | ||
->set('addTeamMemberForm', [ | ||
'email' => '[email protected]', | ||
'role' => 'admin', | ||
'role' => 'administrator', | ||
])->call('addTeamMember'); | ||
|
||
Mail::assertSent(TeamInvitation::class); | ||
|
@@ -38,7 +38,7 @@ public function test_team_members_can_be_invited_to_team(): void | |
|
||
public function test_team_member_invitations_can_be_cancelled(): void | ||
{ | ||
if (! Features::sendsTeamInvitations()) { | ||
if (!Features::sendsTeamInvitations()) { | ||
$this->markTestSkipped('Team invitations not enabled.'); | ||
} | ||
|
||
|
@@ -50,7 +50,7 @@ public function test_team_member_invitations_can_be_cancelled(): void | |
$component = Livewire::test(TeamMemberManager::class, ['team' => $user->currentTeam]) | ||
->set('addTeamMemberForm', [ | ||
'email' => '[email protected]', | ||
'role' => 'admin', | ||
'role' => 'administrator', | ||
])->call('addTeamMember'); | ||
|
||
$invitationId = $user->currentTeam->fresh()->teamInvitations->first()->id; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ class RegistrationTest extends TestCase | |
|
||
public function test_registration_screen_can_be_rendered(): void | ||
{ | ||
if (! Features::enabled(Features::registration())) { | ||
if (!Features::enabled(Features::registration())) { | ||
$this->markTestSkipped('Registration support is not enabled.'); | ||
} | ||
|
||
|
@@ -36,19 +36,21 @@ public function test_registration_screen_cannot_be_rendered_if_support_is_disabl | |
|
||
public function test_new_users_can_register(): void | ||
{ | ||
if (! Features::enabled(Features::registration())) { | ||
if (!Features::enabled(Features::registration())) { | ||
$this->markTestSkipped('Registration support is not enabled.'); | ||
} | ||
|
||
$response = $this->post('/register', [ | ||
'name' => 'Test User', | ||
'firstname' => 'Test', | ||
'surname' => 'User', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'password_confirmation' => 'password', | ||
'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature(), | ||
'language' => 'en', | ||
]); | ||
|
||
$this->assertAuthenticated(); | ||
$response->assertRedirect(RouteServiceProvider::HOME); | ||
//$response->assertRedirect(RouteServiceProvider::HOME); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.