mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 07:20:09 +00:00
15 lines
258 B
PHP
15 lines
258 B
PHP
<?php
|
|
|
|
use App\Models\Result;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
beforeEach(function () {
|
|
Cache::flush();
|
|
});
|
|
|
|
test('can use factory to create a Result model', function () {
|
|
Result::factory()->create();
|
|
|
|
expect(Result::count())->toBe(1);
|
|
});
|