mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Inline variable
This commit is contained in:
parent
4e7c6bd2cf
commit
78f9292555
|
@ -11,7 +11,6 @@ use Tests\TestCase;
|
|||
|
||||
class AssetAcceptanceReminderTest extends TestCase
|
||||
{
|
||||
private CheckoutAcceptance $checkoutAcceptance;
|
||||
private User $actor;
|
||||
|
||||
protected function setUp(): void
|
||||
|
@ -21,15 +20,15 @@ class AssetAcceptanceReminderTest extends TestCase
|
|||
Mail::fake();
|
||||
|
||||
$this->actor = User::factory()->canViewReports()->create();
|
||||
$this->checkoutAcceptance = CheckoutAcceptance::factory()->pending()->create();
|
||||
}
|
||||
|
||||
public function testMustHavePermissionToSendReminder()
|
||||
{
|
||||
$checkoutAcceptance = CheckoutAcceptance::factory()->pending()->create();
|
||||
$userWithoutPermission = User::factory()->create();
|
||||
|
||||
$this->actingAs($userWithoutPermission)
|
||||
->post($this->routeFor($this->checkoutAcceptance))
|
||||
->post($this->routeFor($checkoutAcceptance))
|
||||
->assertForbidden();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue