10-04-2026

This commit is contained in:
Kevin Adametz 2026-04-10 17:18:17 +02:00
parent 4d6b4930b2
commit 4bb89aad8c
836 changed files with 52961 additions and 5950 deletions

View file

@ -4,7 +4,6 @@ namespace FluxCms\Core\Tests\Unit\Models;
use FluxCms\Core\Models\BlogPost;
use FluxCms\Core\Models\User;
use Spatie\Tags\Tag;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Orchestra\Testbench\TestCase;
@ -17,7 +16,7 @@ class BlogPostTest extends TestCase
$user = User::factory()->create();
$post = BlogPost::factory()->create([
'author_id' => $user->id,
'author_type' => User::class
'author_type' => User::class,
]);
$this->assertInstanceOf(User::class, $post->author);
}

View file

@ -16,7 +16,7 @@ class PageTest extends TestCase
$page = Page::factory()->create();
Slug::factory()->create([
'model_id' => $page->id,
'model_type' => Page::class
'model_type' => Page::class,
]);
$this->assertInstanceOf(Slug::class, $page->slugs->first());
}