Skip to content

Commit

Permalink
Style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Feb 3, 2025
1 parent 9fd4420 commit 3edb42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Database/DatabaseEloquentModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ public function testWithWhereHasWithSpecificColumns()
public function testWithWhereHasWorksInNestedQuery()
{
$model = new EloquentModelWithWhereHasStub;
$instance = $model->newInstance()->newQuery()->with(fn($q) => $q->withWhereHas('foo:diaa,fares'));
$instance = $model->newInstance()->newQuery()->with(fn ($q) => $q->withWhereHas('foo:diaa,fares'));
$builder = m::mock(Builder::class);
$builder->shouldReceive('select')->once()->with(['diaa', 'fares']);
$this->assertNotNull($instance->getEagerLoads()['foo']);
Expand Down

0 comments on commit 3edb42d

Please sign in to comment.