Skip to content

Commit

Permalink
use expected (#35926)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuernbergerA committed Jan 17, 2021
1 parent c90605d commit 5e40b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Integration/Database/QueryBuilderTest.php
Expand Up @@ -36,7 +36,7 @@ public function testSole()
{
$expected = ['id' => '1', 'title' => 'Foo Post'];

$this->assertEquals(1, DB::table('posts')->where('title', 'Foo Post')->sole()->id);
$this->assertSame($expected, (array) DB::table('posts')->where('title', 'Foo Post')->select('id', 'title')->sole());
}

public function testSoleFailsForMultipleRecords()
Expand Down

0 comments on commit 5e40b0e

Please sign in to comment.