Skip to content

Commit

Permalink
Merge pull request #205 from analogueorm/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
RemiCollin authored Oct 6, 2017
2 parents 9fedf48 + 8fc0525 commit b7856c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/cases/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ public function test_findOrFail_query()
/** @test */
public function test_pluck()
{
$blogA = $this->factoryCreateUid(Blog::class);
$blogB = $this->factoryCreateUid(Blog::class);
$blogA = analogue_factory(Blog::class)->create(['id' => 1]);
$blogB = analogue_factory(Blog::class)->create(['id' => 2]);
$this->clearCache();
$mapper = $this->mapper(Blog::class);
$ids = $mapper->pluck('id');
dd($ids);

$ids = $mapper->orderBy('id')->pluck('id');

$this->assertEquals([$blogA->id, $blogB->id], $ids->all());
}
}

0 comments on commit b7856c8

Please sign in to comment.