Let's just do it directly.

This commit is contained in:
jgen 2014-02-19 02:39:13 -05:00
parent b570ef1573
commit 5b9107339a

View file

@ -45,23 +45,25 @@ foreach(_get_themelet_files(get_theme()) as $themelet) {
_load_extensions();
// Create the necessary users for the tests.
$userPage = new UserPage();
$userPage->onUserCreation(new UserCreationEvent("demo", "demo", ""));
$database->commit(); // Need to commit the new user to the database.
$database->beginTransaction();
$userPage->onUserCreation(new UserCreationEvent("test", "test", ""));
$database->commit(); // Need to commit the new user to the database.
$database->beginTransaction();
// Continue
$page = class_exists("CustomPage") ? new CustomPage() : new Page();
$user = _get_user();
send_event(new InitExtEvent());
// Create the necessary users for the tests.
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());