Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 21, 2024
1 parent 8b2b991 commit 1b38009
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Testing/Concerns/InteractsWithDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ protected function castAsJson($value, $grammar)

$connection->shouldReceive('getQueryGrammar')->andReturn($grammar);

$connection->shouldReceive('raw')->andReturnUsing(function ($value) {
return new Expression($value);
});

$connection->shouldReceive('getPdo->quote')->andReturnUsing(function ($value) {
return "'".$value."'";
});

DB::shouldReceive('connection')->andReturn($connection);

DB::shouldReceive('raw')->andReturnUsing(function ($value) {
return new Expression($value);
});
DB::shouldReceive('connection')->with(null)->andReturn($connection);

$instance = new class
{
Expand Down

0 comments on commit 1b38009

Please sign in to comment.