Skip to content
Snippets Groups Projects
Commit c1d2d11f authored by Angie Byron's avatar Angie Byron
Browse files

#685004 by Dave Reid: Fixed Cannot run tests under non-standard profile.

parent 239cec28
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1092,7 +1092,7 @@ protected function drupalLogout() { ...@@ -1092,7 +1092,7 @@ protected function drupalLogout() {
* List of modules to enable for the duration of the test. * List of modules to enable for the duration of the test.
*/ */
protected function setUp() { protected function setUp() {
global $db_prefix, $user, $language; global $db_prefix, $user, $language, $conf;
// Store necessary current values before switching to prefixed database. // Store necessary current values before switching to prefixed database.
$this->originalLanguage = $language; $this->originalLanguage = $language;
...@@ -1127,7 +1127,9 @@ protected function setUp() { ...@@ -1127,7 +1127,9 @@ protected function setUp() {
ini_set('log_errors', 1); ini_set('log_errors', 1);
ini_set('error_log', $public_files_directory . '/error.log'); ini_set('error_log', $public_files_directory . '/error.log');
// Reset all statics so that test is performed with a clean environment. // Reset all statics and variables so that test is performed with a clean
// environment.
$conf = array();
drupal_static_reset(); drupal_static_reset();
include_once DRUPAL_ROOT . '/includes/install.inc'; include_once DRUPAL_ROOT . '/includes/install.inc';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment