diff --git a/tests/all_tests.php b/tests/all_tests.php index e07890ae..7f23aa78 100644 --- a/tests/all_tests.php +++ b/tests/all_tests.php @@ -12,6 +12,7 @@ require_once('lib/simpletest/autorun.php'); require_once('lib/simpletest/unit_tester.php'); require_once('lib/simpletest/web_tester.php'); require_once('lib/simpletest/reporter.php'); +require_once('ext/simpletest/main.php'); // Enable all errors. error_reporting(E_ALL); @@ -48,6 +49,10 @@ $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", "")); +send_event(new UserCreationEvent("test", "test", "")); + // Run all the tests $all = new TestFinder(); $all->run(new TextReporter());