diff --git a/tests/Unit/MongoTransportTest.php b/tests/Unit/MongoTransportTest.php index a022558..6b7fd73 100644 --- a/tests/Unit/MongoTransportTest.php +++ b/tests/Unit/MongoTransportTest.php @@ -8,6 +8,7 @@ use EmagTechLabs\MessengerMongoBundle\Tests\Unit\Fixtures\HelloMessage; use MongoDB\BSON\ObjectId; use MongoDB\Collection; +use MongoDB\InsertOneResult; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; use Symfony\Component\Messenger\Envelope; @@ -263,6 +264,12 @@ public function __construct() public function insertOne($document, array $options = []) { $this->documents[] = $document; + + return new class extends InsertOneResult { + public function __construct() + { + } + }; } }; }