Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Aug 12, 2021
1 parent 5f8b9f8 commit d1d1714
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ class DbalValueOperatorFunctionTest extends TestCase
$expressionResult = new DbalExpressionResult(['%column', 'books.id']);

$helper = Mockery::mock(DbalQueryBuilderHelper::class);
$helper->shouldReceive('processPropertyExpr')->once()->andReturnUsing(function ($_, $__, $expressionResultCb) use ($expressionResult) {
return $expressionResultCb($expressionResult);
});
$helper->shouldReceive('processPropertyExpr')->once()->andReturn($expressionResult);

$builder = Mockery::mock(QueryBuilder::class);
$builder->shouldReceive('getFromAlias')->andReturn('books');
Expand Down

0 comments on commit d1d1714

Please sign in to comment.