File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -2153,6 +2153,7 @@ protected function addMockConnection($model)
2153
2153
$ model ->setConnectionResolver ($ resolver = m::mock (ConnectionResolverInterface::class));
2154
2154
$ resolver ->shouldReceive ('connection ' )->andReturn ($ connection = m::mock (Connection::class));
2155
2155
$ connection ->shouldReceive ('getQueryGrammar ' )->andReturn ($ grammar = m::mock (Grammar::class));
2156
+ $ grammar ->shouldReceive ('getBinaryOperators ' )->andReturn ([]);
2156
2157
$ connection ->shouldReceive ('getPostProcessor ' )->andReturn ($ processor = m::mock (Processor::class));
2157
2158
$ connection ->shouldReceive ('query ' )->andReturnUsing (function () use ($ connection , $ grammar , $ processor ) {
2158
2159
return new BaseBuilder ($ connection , $ grammar , $ processor );
@@ -2440,6 +2441,7 @@ public function getConnection()
2440
2441
{
2441
2442
$ mock = m::mock (Connection::class);
2442
2443
$ mock ->shouldReceive ('getQueryGrammar ' )->andReturn ($ grammar = m::mock (Grammar::class));
2444
+ $ grammar ->shouldReceive ('getBinaryOperators ' )->andReturn ([]);
2443
2445
$ mock ->shouldReceive ('getPostProcessor ' )->andReturn ($ processor = m::mock (Processor::class));
2444
2446
$ mock ->shouldReceive ('getName ' )->andReturn ('name ' );
2445
2447
$ mock ->shouldReceive ('query ' )->andReturnUsing (function () use ($ mock , $ grammar , $ processor ) {
You can’t perform that action at this time.
0 commit comments