feat: manage companies on contact page (monicahq/chandler#61)

This commit is contained in:
Mazarin
2022-05-01 07:58:37 -04:00
committed by GitHub
parent 2086600dee
commit b3d9865258
33 changed files with 1221 additions and 127 deletions
+11
View File
@@ -8,6 +8,7 @@ use App\Models\Note;
use App\Models\Label;
use App\Models\Gender;
use App\Models\Address;
use App\Models\Company;
use App\Models\Contact;
use App\Models\Pronoun;
use App\Models\Template;
@@ -172,4 +173,14 @@ class ContactTest extends TestCase
$this->assertTrue($ross->loansAsLoanee()->exists());
}
/** @test */
public function it_has_one_company()
{
$ross = Contact::factory()->create([
'company_id' => Company::factory()->create(),
]);
$this->assertTrue($ross->company()->exists());
}
}