feat: add TextWidget
add TextWidget CRUD api add basic tests for API
This commit is contained in:
parent
13cfd2961f
commit
c66645cbdd
18 changed files with 536 additions and 1 deletions
15
tests/Unit/TextWidgetModelTest.php
Normal file
15
tests/Unit/TextWidgetModelTest.php
Normal 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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue