feat: manage contact tasks (monicahq/chandler#79)

This commit is contained in:
Mazarin
2022-05-16 10:31:47 -04:00
committed by GitHub
parent b86ca32f50
commit d576eed56e
538 changed files with 3663 additions and 2191 deletions
+28
View File
@@ -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());
}
}