Skip to content

Commit

Permalink
add support for messenger:stats command added in 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Iosif Chiriluta | eMAG, Technology committed Mar 28, 2024
1 parent 764b3c2 commit a78d8e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Unit/MongoTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -263,6 +264,12 @@ public function __construct()
public function insertOne($document, array $options = [])
{
$this->documents[] = $document;

return new class extends InsertOneResult {
public function __construct()
{
}
};
}
};
}
Expand Down

0 comments on commit a78d8e4

Please sign in to comment.