diff --git a/tests/Unit/AbstractContentModelTest.php b/tests/Unit/AbstractContentModelTest.php index 27b6447d..4f8fe3db 100644 --- a/tests/Unit/AbstractContentModelTest.php +++ b/tests/Unit/AbstractContentModelTest.php @@ -21,12 +21,16 @@ public function test_with_pending() $page = Page::factory()->create(); $page->is_draft = 0; $page->publish_at = now()->addDays(1); + $page->expire_at = now()->addDays(10); $page->save(); $page = Page::withoutGlobalScopes()->find($page->id); $this->assertEquals('Pending', $page->status); $this->assertNull(Page::find($page->id)); $this->assertNotNull(Page::withPending()->where('id', $page->id)->first()); + + throw new InvalidStatusException('Content condition does not satisfy any status'); + } public function test_updated_by()