Is there a way to rollback transactions?

Is there a way to rollback transactions?

rw152rw152 Posts: 56Questions: 15Answers: 1

I'm unit testing right now and am curious to know if there is a way to manually rollback transactions when using the DT PHP library? I'd rather not make permanent changes to my test DB if that's possible.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586
    edited June 2019 Answer ✓

    Hi @rw152 ,

    Not within Editor, but probably the best bet is to create an independent DB for testing away from the main DB, which you can just load with a script. That way it'll be to reset between tests.

    Cheers,

    Colin

  • rw152rw152 Posts: 56Questions: 15Answers: 1

    Thanks, Colin

This discussion has been closed.