DominionEnterprises\Mongo\QueueTest::getBySubDocQuery PHP Method

getBySubDocQuery() public method

public getBySubDocQuery ( )
    public function getBySubDocQuery()
    {
        $messageTwo = ['one' => ['two' => ['three' => 5, 'notused' => 'notused'], 'notused' => 'notused'], 'notused' => 'notused'];
        $this->queue->send(['key1' => 0, 'key2' => true]);
        $this->queue->send($messageTwo);
        $result = $this->queue->get(['one.two.three' => ['$gt' => 4]], PHP_INT_MAX, 0);
        $this->assertSame(['id' => $result['id']] + $messageTwo, $result);
    }