Skip to content

Commit b53a71d

Browse files
committed
Add failing test
1 parent 9e3e045 commit b53a71d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/Feature/Accessories/Ui/ShowAccessoryTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,13 @@ public function testPageRenders()
4747
->assertOk();
4848

4949
}
50+
51+
public function testHandlesAccessoryCreatorNotExisting()
52+
{
53+
$accessory = Accessory::factory()->create(['created_by' => 999999]);
54+
55+
$this->actingAs(User::factory()->superuser()->create())
56+
->get(route('accessories.show', $accessory))
57+
->assertOk();
58+
}
5059
}

0 commit comments

Comments
 (0)