Improve naming

This commit is contained in:
Marcus Moore 2025-01-29 15:56:20 -08:00
parent e2805f4033
commit 70aed45bfe
No known key found for this signature in database

View file

@ -68,7 +68,7 @@ class AssetAcceptanceReminderTest extends TestCase
Mail::assertNotSent(CheckoutAssetMail::class); Mail::assertNotSent(CheckoutAssetMail::class);
} }
public static function users() public static function acceptances()
{ {
yield 'User with locale set' => [ yield 'User with locale set' => [
function () { function () {
@ -86,10 +86,10 @@ class AssetAcceptanceReminderTest extends TestCase
]; ];
} }
#[DataProvider('users')] #[DataProvider('acceptances')]
public function testReminderIsSentToUser($data) public function testReminderIsSentToUser($callback)
{ {
$checkoutAcceptance = $data(); $checkoutAcceptance = $callback();
$this->actingAs($this->actor) $this->actingAs($this->actor)
->post($this->routeFor($checkoutAcceptance)) ->post($this->routeFor($checkoutAcceptance))