Skip to content

Commit cd402e2

Browse files
committed
return pdo mock
1 parent 30c768e commit cd402e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TNTSearchEngineTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function toSearchableArray()
5353
public function getConnection()
5454
{
5555
$connection = Mockery::mock('Illuminate\Database\MySqlConnection');
56-
$connection->shouldReceive('getPdo');
56+
$connection->shouldReceive('getPdo')->andReturn(Mockery::mock('PDO'));
5757

5858
return $connection;
5959
}

0 commit comments

Comments
 (0)