Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoungportable committed Mar 17, 2024
1 parent ea902db commit b3001f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Unit/AbstractContentModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b3001f1

Please sign in to comment.