share-lt/tests/Unit/TextWidgetModelTest.php

16 lines
261 B
PHP
Raw Normal View History

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