test working

This commit is contained in:
spencerrlongg 2024-07-09 11:13:06 -05:00
parent 33b2c7b78a
commit 66255291da

View file

@ -90,13 +90,10 @@ class AccessoryAcceptanceTest extends TestCase
->for(Asset::factory()->laptopMbp(), 'checkoutable')
->create();
$request = $this->actingAs($otherUser)
$this->actingAs($otherUser)
->post(route('account.store-acceptance', $acceptance), ['asset_acceptance' => 'accepted'])
//->assertSessionHasNoErrors();
//->dd()
->assertSessionHasNoErrors();
$this->assertNotNull($acceptance->fresh()->accepted_at);
->assertSessionHas(['error' => trans('admin/users/message.error.incorrect_user_accepted')]);
$this->assertNull($acceptance->fresh()->accepted_at);
}
}