DominionEnterprises\Mongo\QueueTest::getByFullQuery PHP Method

getByFullQuery() public method

public getByFullQuery ( )
    public function getByFullQuery()
    {
        $messageOne = ['id' => 'SHOULD BE REMOVED', 'key1' => 0, 'key2' => true];
        $this->queue->send($messageOne);
        $this->queue->send(['key' => 'value']);
        $result = $this->queue->get($messageOne, PHP_INT_MAX, 0);
        $this->assertNotSame($messageOne['id'], $result['id']);
        $messageOne['id'] = $result['id'];
        $this->assertSame($messageOne, $result);
    }