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

testRollback() public method

public testRollback ( )
    public function testRollback()
    {
        $this->connection->rollback(Argument::exact(['projectId' => 'foo', 'transaction' => 'bar']))->shouldBeCalled()->willReturn(null);
        $this->operation->setConnection($this->connection->reveal());
        $this->operation->rollback('bar');
    }