Skip to content

Commit 82029ad

Browse files
Make test more readable
1 parent cfd3fff commit 82029ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/QueryBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ public function it_keeps_local_macros_added_to_the_base_query()
155155
return $builder->where('name', 'Foo');
156156
});
157157

158-
$queryBuilder = QueryBuilder::for($baseQuery);
158+
$queryBuilder = QueryBuilder::for(clone $baseQuery);
159159

160160
$this->assertEquals(
161-
'select * from `test_models` where `name` = ?',
161+
$baseQuery->customMacro()->toSql(),
162162
$queryBuilder->customMacro()->toSql()
163163
);
164164
}

0 commit comments

Comments
 (0)