mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-18 01:45:44 +00:00
Add test case
This commit is contained in:
@ -22,6 +22,13 @@ class CreateCompaniesTest extends TestCase
|
||||
->assertViewIs('companies.edit');
|
||||
}
|
||||
|
||||
public function testRequiresPermissionToCreateCompany()
|
||||
{
|
||||
$this->actingAs(User::factory()->create())
|
||||
->post(route('companies.store'))
|
||||
->assertForbidden();
|
||||
}
|
||||
|
||||
public function testValidDataRequiredToCreateCompany()
|
||||
{
|
||||
$this->actingAs(User::factory()->createCompanies()->create())
|
||||
|
||||
Reference in New Issue
Block a user