mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
test working
This commit is contained in:
parent
33b2c7b78a
commit
66255291da
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue