Let's just do it directly.
This commit is contained in:
parent
b570ef1573
commit
5b9107339a
1 changed files with 15 additions and 13 deletions
|
@ -45,23 +45,25 @@ foreach(_get_themelet_files(get_theme()) as $themelet) {
|
||||||
|
|
||||||
_load_extensions();
|
_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();
|
$page = class_exists("CustomPage") ? new CustomPage() : new Page();
|
||||||
$user = _get_user();
|
$user = _get_user();
|
||||||
send_event(new InitExtEvent());
|
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.
|
// Now we can run all the tests.
|
||||||
$all = new TestFinder("");
|
$all = new TestFinder("");
|
||||||
$results = $all->run(new TextReporter());
|
$results = $all->run(new TextReporter());
|
||||||
|
|
Reference in a new issue