Add test case

This commit is contained in:
Marcus Moore 2024-09-09 16:49:43 -07:00
parent 35533c39d5
commit 5d5f421294
No known key found for this signature in database

View file

@ -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())