Google\Cloud\Tests\Datastore\OperationTest::testRunQueryWithoutReadOptions PHP Méthode

testRunQueryWithoutReadOptions() public méthode

    public function testRunQueryWithoutReadOptions()
    {
        $this->connection->runQuery(Argument::that(function ($args) {
            if (isset($args['readOptions'])) {
                return false;
            }
            return true;
        }))->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());
        iterator_to_array($res);
    }