Finish re-working tests to run on test database
This commit is contained in:
parent
09fc211623
commit
1abca77bdc
50 changed files with 535 additions and 265 deletions
|
@ -6,14 +6,18 @@ namespace Tests\Unit;
|
|||
|
||||
use App\Models\MicropubClient;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class MicropubClientsTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
/** @test */
|
||||
public function weCanGetNotesRelatingToClient(): void
|
||||
{
|
||||
$client = MicropubClient::find(1);
|
||||
$client = MicropubClient::factory()->make();
|
||||
|
||||
$this->assertInstanceOf(Collection::class, $client->notes);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue