Files
monica/tests/Unit/Models/ReminderOutboxTest.php
T
2019-01-15 18:03:13 -05:00

31 lines
823 B
PHP

<?php
namespace Tests\Unit\Models;
use Tests\TestCase;
use App\Models\Contact\ReminderOutbox;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ReminderOutboxTest extends TestCase
{
use DatabaseTransactions;
public function test_it_belongs_to_an_account()
{
$reminderOutbox = factory(ReminderOutbox::class)->create([]);
$this->assertTrue($reminderOutbox->account()->exists());
}
public function test_it_belongs_to_a_reminder()
{
$reminderOutbox = factory(ReminderOutbox::class)->create([]);
$this->assertTrue($reminderOutbox->reminder()->exists());
}
public function test_it_belongs_to_a_user()
{
$reminderOutbox = factory(ReminderOutbox::class)->create([]);
$this->assertTrue($reminderOutbox->user()->exists());
}
}