We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90605d commit 5e40b0eCopy full SHA for 5e40b0e
tests/Integration/Database/QueryBuilderTest.php
@@ -36,7 +36,7 @@ public function testSole()
36
{
37
$expected = ['id' => '1', 'title' => 'Foo Post'];
38
39
- $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());
40
}
41
42
public function testSoleFailsForMultipleRecords()
0 commit comments