Google\Cloud\Tests\Datastore\OperationTest::testRunQueryWithReadOptionsFromReadConsistency PHP Method

testRunQueryWithReadOptionsFromReadConsistency() public method

    public function testRunQueryWithReadOptionsFromReadConsistency()
    {
        $this->connection->runQuery(Argument::withKey('readOptions'))->willReturn([]);
        $this->operation->setConnection($this->connection->reveal());
        $q = $this->prophesize(QueryInterface::class);
        $q->queryKey()->willReturn('query');
        $q->queryObject()->willReturn([]);
        $res = $this->operation->runQuery($q->reveal(), ['readConsistency' => 'foo']);
        iterator_to_array($res);
    }