Fix unhandled error on jetstream page with non-UUID id, fixes ST-274

This commit is contained in:
Constantin Graf
2024-06-24 13:05:26 +02:00
committed by Gregor Vostrak
parent 512089ccbd
commit f21a2d4bdd
4 changed files with 49 additions and 1 deletions

View File

@@ -8,10 +8,23 @@ use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class UpdateTeamNameTest extends TestCase
class UpdateTeamTest extends TestCase
{
use RefreshDatabase;
public function test_team_update_page_shows_not_found_if_id_is_not_uuid(): void
{
// Arrange
$user = User::factory()->withPersonalOrganization()->create();
$this->actingAs($user);
// Act
$response = $this->get('/teams/1');
// Assert
$response->assertStatus(404);
}
public function test_team_names_can_be_updated(): void
{
// Arrange