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

testLookupWithoutReadOptions() public method

    public function testLookupWithoutReadOptions()
    {
        $this->connection->lookup(Argument::that(function ($args) {
            if (isset($args['readOptions'])) {
                return false;
            }
            return true;
        }))->shouldBeCalled()->willReturn([]);
        $this->operation->setConnection($this->connection->reveal());
        $k = new Key('test-project', ['path' => [['kind' => 'kind', 'id' => '123']]]);
        $this->operation->lookup([$k]);
    }