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

testUpdate() public méthode

public testUpdate ( )
    public function testUpdate()
    {
        $e = $this->prophesize(Entity::class);
        $this->operation->mutation(Argument::exact('update'), Argument::type(Entity::class), Argument::exact(Entity::class, null))->shouldBeCalled()->willReturn(null);
        $this->operation->commit()->shouldNotBeCalled();
        $this->operation->checkOverwrite(Argument::type('array'), Argument::exact(false))->willReturn(null);
        $this->transaction->setOperation($this->operation->reveal());
        $this->transaction->update($e->reveal());
    }