feat: add TextWidget

add TextWidget CRUD api

add basic tests for API
This commit is contained in:
jon brookes 2026-01-08 16:22:47 +00:00
parent 13cfd2961f
commit c66645cbdd
18 changed files with 536 additions and 1 deletions

View file

@ -0,0 +1,15 @@
<?php
use App\Models\TextWidget;
it('has correct fillable attributes', function () {
$expected = [
'title',
'description',
'content',
];
$entry = new TextWidget;
expect($entry->getFillable())->toEqual($expected);
});