Google\Cloud\Tests\Datastore\TransactionTest::testDeleteBatch PHP Méthode

testDeleteBatch() public méthode

public testDeleteBatch ( )
    public function testDeleteBatch()
    {
        $k = $this->prophesize(Key::class);
        $this->operation->mutation(Argument::exact('delete'), Argument::type(Key::class), Argument::exact(Key::class, null))->shouldBeCalled()->willReturn(null);
        $this->operation->commit()->shouldNotBeCalled();
        $this->transaction->setOperation($this->operation->reveal());
        $this->transaction->deleteBatch([$k->reveal()]);
    }