Files
monica/tests/Unit/Models/PostTest.php
T

21 lines
371 B
PHP

<?php
namespace Tests\Unit\Models;
use App\Models\Post;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class PostTest extends TestCase
{
use DatabaseTransactions;
/** @test */
public function it_has_one_journal()
{
$post = Post::factory()->create();
$this->assertTrue($post->journal()->exists());
}
}