Skip to content

Commit

Permalink
Improve test method name
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusmoore committed Jan 30, 2024
1 parent 6d41c8c commit 3f76d65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/Api/Accessories/AccessoryCheckoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testCheckingOutAccessoryRequiresCorrectPermission()
->assertForbidden();
}

public function testValidation()
public function testValidationWhenCheckingOutAccessory()
{
$this->actingAsForApi(User::factory()->checkoutAccessories()->create())
->postJson(route('api.accessories.checkout', Accessory::factory()->create()), [
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Checkouts/AccessoryCheckoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testCheckingOutAccessoryRequiresCorrectPermission()
->assertForbidden();
}

public function testValidation()
public function testValidationWhenCheckingOutAccessory()
{
$this->actingAs(User::factory()->checkoutAccessories()->create())
->post(route('accessories.checkout.store', Accessory::factory()->create()), [
Expand Down

0 comments on commit 3f76d65

Please sign in to comment.