added initial entries model
This commit is contained in:
parent
11f1dc6895
commit
a0a1c08ece
19 changed files with 487 additions and 6 deletions
19
tests/Unit/EntryModelTest.php
Normal file
19
tests/Unit/EntryModelTest.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
use App\Models\Entry;
|
||||
|
||||
it('has correct fillable attributes', function () {
|
||||
$expected = [
|
||||
'title',
|
||||
'slug',
|
||||
'description',
|
||||
'is_published',
|
||||
'is_featured',
|
||||
'published_at',
|
||||
'content',
|
||||
];
|
||||
|
||||
$entry = new Entry();
|
||||
|
||||
expect($entry->getFillable())->toEqual($expected);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue