Skip to content

Commit

Permalink
order doesnt matter
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed May 3, 2024
1 parent 782761e commit 2240e49
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Data/Entries/EntryQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,27 +856,27 @@ public function it_filters_by_status($status, $expected)
EntryFactory::collection('calendar')->slug('calendar-past')->published(true)->date(now()->subDay())->create();
EntryFactory::collection('calendar')->slug('calendar-past-draft')->published(false)->date(now()->subDay())->create();

$this->assertEquals($expected, Entry::query()->whereStatus($status)->get()->map->slug()->all());
$this->assertEquals($expected, Entry::query()->whereStatus($status)->get()->map->slug()->sort()->all());
}

public static function filterByStatusProvider()
{
return [
'draft' => ['draft', [
'page-draft',
'blog-future-draft',
'blog-past-draft',
'event-future-draft',
'event-past-draft',
'calendar-future-draft',
'calendar-past-draft',
'event-future-draft',
'event-past-draft',
'page-draft',
]],
'published' => ['published', [
'page',
'blog-past',
'event-future',
'calendar-future',
'calendar-past',
'event-future',
'page',
]],
'scheduled' => ['scheduled', [
'blog-future',
Expand Down

0 comments on commit 2240e49

Please sign in to comment.