We need to create these users before running the tests.

This commit is contained in:
jgen 2014-02-19 00:00:18 -05:00
parent 57b9d418c9
commit b4819e4b33

View file

@ -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());