We need to create these users before running the tests.
This commit is contained in:
parent
57b9d418c9
commit
b4819e4b33
@ -12,6 +12,7 @@ require_once('lib/simpletest/autorun.php');
|
|||||||
require_once('lib/simpletest/unit_tester.php');
|
require_once('lib/simpletest/unit_tester.php');
|
||||||
require_once('lib/simpletest/web_tester.php');
|
require_once('lib/simpletest/web_tester.php');
|
||||||
require_once('lib/simpletest/reporter.php');
|
require_once('lib/simpletest/reporter.php');
|
||||||
|
require_once('ext/simpletest/main.php');
|
||||||
|
|
||||||
// Enable all errors.
|
// Enable all errors.
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
@ -48,6 +49,10 @@ $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", ""));
|
||||||
|
send_event(new UserCreationEvent("test", "test", ""));
|
||||||
|
|
||||||
// Run all the tests
|
// Run all the tests
|
||||||
$all = new TestFinder();
|
$all = new TestFinder();
|
||||||
$all->run(new TextReporter());
|
$all->run(new TextReporter());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user