Put the database into auto commit mode.
This commit is contained in:
parent
55f07d0cfd
commit
61bf9b9b3e
@ -53,18 +53,21 @@ foreach(_get_themelet_files(get_theme()) as $themelet) {
|
|||||||
|
|
||||||
_load_extensions();
|
_load_extensions();
|
||||||
|
|
||||||
|
// Put the database into autocommit mode.
|
||||||
|
$database->commit();
|
||||||
|
|
||||||
// Create the necessary users for the tests.
|
// Create the necessary users for the tests.
|
||||||
|
|
||||||
$userPage = new UserPage();
|
$userPage = new UserPage();
|
||||||
$userPage->onUserCreation(new UserCreationEvent("demo", "demo", ""));
|
$userPage->onUserCreation(new UserCreationEvent("demo", "demo", ""));
|
||||||
$database->commit(); // Need to commit the new user to the database.
|
//$database->commit(); // Need to commit the new user to the database.
|
||||||
|
|
||||||
$database->beginTransaction();
|
//$database->beginTransaction();
|
||||||
|
|
||||||
$userPage->onUserCreation(new UserCreationEvent("test", "test", ""));
|
$userPage->onUserCreation(new UserCreationEvent("test", "test", ""));
|
||||||
$database->commit(); // Need to commit the new user to the database.
|
//$database->commit(); // Need to commit the new user to the database.
|
||||||
|
|
||||||
$database->beginTransaction();
|
//$database->beginTransaction();
|
||||||
|
|
||||||
// Continue
|
// Continue
|
||||||
|
|
||||||
@ -77,6 +80,6 @@ $all = new TestFinder("");
|
|||||||
$results = $all->run(new TextReporter());
|
$results = $all->run(new TextReporter());
|
||||||
|
|
||||||
// At this point this isn't really necessary as the test machines are stateless.
|
// At this point this isn't really necessary as the test machines are stateless.
|
||||||
$database->commit();
|
//$database->commit();
|
||||||
|
|
||||||
exit ($results ? 0 : 1);
|
exit ($results ? 0 : 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user