mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Improve naming
This commit is contained in:
parent
e2805f4033
commit
70aed45bfe
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue