Skip to content

Commit 5e40b0e

Browse files
authored
use expected (#35926)
1 parent c90605d commit 5e40b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/Database/QueryBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testSole()
3636
{
3737
$expected = ['id' => '1', 'title' => 'Foo Post'];
3838

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

4242
public function testSoleFailsForMultipleRecords()

0 commit comments

Comments
 (0)