add projet

This commit is contained in:
root
2026-03-05 12:29:37 -05:00
parent 8d1eef8ba8
commit 23b7db1107
9109 changed files with 1106501 additions and 73 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace Tests\Unit\Models;
use App\Models\Notification;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Eloquent\SoftDeletes;
class NotificationTest extends TestCase
{
public function test_model_metadata_is_converted(): void
{
$model = new Notification();
$this->assertSame('notifications', $model->getTable());
$this->assertSame('id', $model->getKeyName());
$this->assertSame(true, $model->timestamps);
$this->assertSame(["title", "message", "target_group", "delivery_channels", "priority", "status", "action_url", "attachment_path", "scheduled_at", "sent_at", "expires_at", "created_at", "updated_at", "deleted_at", "school_year", "semester"], $model->getFillable());
}
public function test_model_class_loads(): void
{
$this->assertInstanceOf(Notification::class, new Notification());
$this->assertContains(SoftDeletes::class, class_uses_recursive(Notification::class));
}
}