Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Jul 20, 2024
1 parent c6b941e commit d9f8d82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Feature_v1/RedirectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public function testRedirection(): void
$response = $this->get('r/aaaaaaaaaaaaaaaaaaaaaaaa');

$this->assertStatus($response, 302);
$response->assertRedirect('gallery#aaaaaaaaaaaaaaaaaaaaaaaa');
if (config('feature.livewire') === true) {
$response->assertRedirect('gallery/aaaaaaaaaaaaaaaaaaaaaaaa');
} else {
$response->assertRedirect('gallery#aaaaaaaaaaaaaaaaaaaaaaaa');
}

$response = $this->get('r/aaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbb');

Expand Down

0 comments on commit d9f8d82

Please sign in to comment.