feat: manage contact tasks (monicahq/chandler#79)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Models;
|
||||
|
||||
use App\Models\ContactTask;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ContactTaskTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
/** @test */
|
||||
public function it_has_one_contact()
|
||||
{
|
||||
$task = ContactTask::factory()->create();
|
||||
|
||||
$this->assertTrue($task->contact()->exists());
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_has_one_author()
|
||||
{
|
||||
$task = ContactTask::factory()->create();
|
||||
|
||||
$this->assertTrue($task->author()->exists());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user