Add failing test
This commit is contained in:
@@ -47,4 +47,13 @@ class ShowAccessoryTest extends TestCase
|
||||
->assertOk();
|
||||
|
||||
}
|
||||
|
||||
public function testHandlesAccessoryCreatorNotExisting()
|
||||
{
|
||||
$accessory = Accessory::factory()->create(['created_by' => 999999]);
|
||||
|
||||
$this->actingAs(User::factory()->superuser()->create())
|
||||
->get(route('accessories.show', $accessory))
|
||||
->assertOk();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user