Skip to content

Commit 96a00b8

Browse files
committed
Add mapIds test
1 parent b947894 commit 96a00b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/PostgresEngineTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ public function test_it_returns_total_count()
136136
$this->assertEquals(100, $count);
137137
}
138138

139+
public function test_map_ids_returns_right_key()
140+
{
141+
list($engine) = $this->getEngine();
142+
$results = [new TestModel()];
143+
$this->assertEquals([1], $engine->mapIds($results));
144+
}
145+
139146
protected function getEngine($config = [])
140147
{
141148
$resolver = Mockery::mock(ConnectionResolverInterface::class);

0 commit comments

Comments
 (0)