18 lines
386 B
PHP
18 lines
386 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Unit;
|
||
|
|
||
|
use Tests\TestCase;
|
||
|
use App\MicropubClient;
|
||
|
use Illuminate\Database\Eloquent\Collection;
|
||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||
|
|
||
|
class MicropbClientsTest extends TestCase
|
||
|
{
|
||
|
public function test_notes_relationship()
|
||
|
{
|
||
|
$client = MicropubClient::find(3);
|
||
|
$this->assertInstanceOf(Collection::class, $client->notes);
|
||
|
}
|
||
|
}
|