feat: manage companies on contact page (monicahq/chandler#61)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user