Google\Cloud\Tests\Datastore\DatastoreClientTest::testLookupBatch PHP Method

testLookupBatch() public method

public testLookupBatch ( )
    public function testLookupBatch()
    {
        $body = json_decode(file_get_contents(__DIR__ . '/../fixtures/datastore/entity-batch-lookup.json'), true);
        $this->operation->lookup(Argument::type('array'), Argument::type('array'))->shouldBeCalled()->willReturn(['foo']);
        $this->datastore->setOperation($this->operation->reveal());
        $key = $this->prophesize(Key::class);
        $res = $this->datastore->lookupBatch([$key->reveal()]);
        $this->assertEquals($res, ['foo']);
    }