Skip to content

Commit da9d2cf

Browse files
Fixes tests
1 parent be27dd4 commit da9d2cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Tags/Collection/EntriesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ public function it_filters_by_future_and_past()
281281

282282
// Only future
283283
$this->collection->dated(true)->futureDateBehavior('public')->pastDateBehavior('unlisted')->save();
284-
$this->assertCount(3, $this->getEntries());
284+
285285
$this->assertCount(0, $this->getEntries(['show_future' => false]));
286286
$this->assertCount(3, $this->getEntries(['show_future' => true]));
287-
$this->assertCount(8, $this->getEntries(['show_past' => true]));
287+
$this->assertCount(3, $this->getEntries(['show_past' => true]));
288288
$this->assertCount(3, $this->getEntries(['show_past' => false]));
289289
$this->assertCount(3, $this->getEntries(['show_past' => false, 'show_future' => true]));
290290

@@ -300,10 +300,10 @@ public function it_filters_by_future_and_past()
300300
$this->collection->dated(true)->futureDateBehavior('unlisted')->pastDateBehavior('public')->save();
301301
$this->assertCount(4, $this->getEntries());
302302
$this->assertCount(4, $this->getEntries(['show_future' => false]));
303-
$this->assertCount(8, $this->getEntries(['show_future' => true]));
303+
$this->assertCount(4, $this->getEntries(['show_future' => true]));
304304
$this->assertCount(4, $this->getEntries(['show_past' => true]));
305305
$this->assertCount(0, $this->getEntries(['show_past' => false]));
306-
$this->assertCount(3, $this->getEntries(['show_past' => false, 'show_future' => true]));
306+
$this->assertCount(0, $this->getEntries(['show_past' => false, 'show_future' => true]));
307307

308308
$this->collection->dated(true)->futureDateBehavior('private')->pastDateBehavior('public')->save();
309309
$this->assertCount(4, $this->getEntries());

0 commit comments

Comments
 (0)