mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 16:12:09 +00:00
kick forever
This commit is contained in:
@@ -46,7 +46,6 @@ test('embedded guest access reuses the session player and applies a changed disp
|
||||
$room = createEmbeddedRoom();
|
||||
$player = $room->players()->create([
|
||||
'name' => 'Old name',
|
||||
'inactive_at' => now(),
|
||||
]);
|
||||
|
||||
$this->withSession(["room_players.{$room->id}" => $player->id])
|
||||
@@ -57,8 +56,7 @@ test('embedded guest access reuses the session player and applies a changed disp
|
||||
->assertOk();
|
||||
|
||||
expect($room->players()->count())->toBe(1)
|
||||
->and($player->fresh()->name)->toBe('New name')
|
||||
->and($player->fresh()->inactive_at)->toBeNull();
|
||||
->and($player->fresh()->name)->toBe('New name');
|
||||
});
|
||||
|
||||
test('an authenticated user automatically joins the embedded room', function () {
|
||||
@@ -92,7 +90,6 @@ test('embedded access reuses the user player and applies a changed display name'
|
||||
$player = $room->players()->create([
|
||||
'user_id' => $user->id,
|
||||
'name' => 'Old name',
|
||||
'inactive_at' => now(),
|
||||
]);
|
||||
|
||||
$this->actingAs($user)
|
||||
@@ -103,8 +100,7 @@ test('embedded access reuses the user player and applies a changed display name'
|
||||
->assertOk();
|
||||
|
||||
expect($room->players()->count())->toBe(1)
|
||||
->and($player->fresh()->name)->toBe('New name')
|
||||
->and($player->fresh()->inactive_at)->toBeNull();
|
||||
->and($player->fresh()->name)->toBe('New name');
|
||||
});
|
||||
|
||||
test('an embedded guest keeps the same player after logging in separately', function () {
|
||||
|
||||
Reference in New Issue
Block a user