From b4819e4b338dfec7136cb5728dce2c146f672f30 Mon Sep 17 00:00:00 2001 From: jgen Date: Wed, 19 Feb 2014 00:00:18 -0500 Subject: [PATCH] We need to create these users before running the tests. --- tests/all_tests.php | 5 +++++ 1 file changed, 5 insertions(+) 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());