forked from Cavemanon/cavepaintings
Expose methods to allow users of the database class to control when transactions occur.
This commit is contained in:
@@ -54,10 +54,14 @@ send_event(new InitExtEvent());
|
||||
send_event(new UserCreationEvent("demo", "demo", ""));
|
||||
$database->commit(); // Need to commit the new user to the database.
|
||||
|
||||
$database->beginTransaction();
|
||||
|
||||
send_event(new UserCreationEvent("test", "test", ""));
|
||||
$database->commit(); // Need to commit the new user to the database.
|
||||
|
||||
|
||||
$database->beginTransaction();
|
||||
|
||||
// Now we can run all the tests.
|
||||
$all = new TestFinder("");
|
||||
$results = $all->run(new TextReporter());
|
||||
|
Reference in New Issue
Block a user