fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
+4 -4
View File
@@ -3,24 +3,24 @@
namespace Tests\Unit\Models;
use App\Models\NavItem;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Eloquent\SoftDeletes;
use PHPUnit\Framework\TestCase;
class NavItemTest extends TestCase
{
public function test_model_metadata_is_converted(): void
{
$model = new NavItem();
$model = new NavItem;
$this->assertSame('nav_items', $model->getTable());
$this->assertSame('id', $model->getKeyName());
$this->assertSame(true, $model->timestamps);
$this->assertSame(["menu_parent_id", "label", "url", "icon_class", "target", "sort_order", "is_enabled", "created_at", "updated_at", "deleted_at"], $model->getFillable());
$this->assertSame(['menu_parent_id', 'label', 'url', 'icon_class', 'target', 'sort_order', 'is_enabled', 'created_at', 'updated_at', 'deleted_at'], $model->getFillable());
}
public function test_model_class_loads(): void
{
$this->assertInstanceOf(NavItem::class, new NavItem());
$this->assertInstanceOf(NavItem::class, new NavItem);
$this->assertContains(SoftDeletes::class, class_uses_recursive(NavItem::class));
}
}