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

testDeleteBatch() public method

public testDeleteBatch ( )
    public function testDeleteBatch()
    {
        $this->operation->commit(Argument::type('array'), Argument::type('array'))->shouldBeCalled()->willReturn(['mutationResults' => [['version' => '1234']]]);
        $this->operation->mutation(Argument::exact('delete'), Argument::type(Key::class), Argument::exact(Key::class), Argument::exact(null))->shouldBeCalled();
        $this->datastore->setOperation($this->operation->reveal());
        $key = $this->prophesize(Key::class);
        $res = $this->datastore->deleteBatch([$key->reveal()]);
        $this->assertEquals($res, ['mutationResults' => [['version' => '1234']]]);
    }