mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -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')
|
->for(Asset::factory()->laptopMbp(), 'checkoutable')
|
||||||
->create();
|
->create();
|
||||||
|
|
||||||
$request = $this->actingAs($otherUser)
|
$this->actingAs($otherUser)
|
||||||
->post(route('account.store-acceptance', $acceptance), ['asset_acceptance' => 'accepted'])
|
->post(route('account.store-acceptance', $acceptance), ['asset_acceptance' => 'accepted'])
|
||||||
//->assertSessionHasNoErrors();
|
->assertSessionHas(['error' => trans('admin/users/message.error.incorrect_user_accepted')]);
|
||||||
//->dd()
|
|
||||||
->assertSessionHasNoErrors();
|
|
||||||
|
|
||||||
$this->assertNotNull($acceptance->fresh()->accepted_at);
|
|
||||||
|
|
||||||
|
$this->assertNull($acceptance->fresh()->accepted_at);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue