MDL-48196 phpunit: Set e-mail address for admin user at installation

This commit is contained in:
Andrew Nicols 2014-11-12 15:04:17 +08:00
parent 683d7de4d1
commit 14ecbb2ee8

View File

@ -408,6 +408,9 @@ class phpunit_util extends testing_util {
install_cli_database($options, false);
// Set the admin email address.
$DB->set_field('user', 'email', 'admin@example.com', array('username' => 'admin'));
// Disable all logging for performance and sanity reasons.
set_config('enabled_stores', '', 'tool_log');