diff -u b/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php b/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php --- b/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php @@ -76,7 +76,7 @@ 'name' => $user->name, 'pass' => $user->pass_raw ); - config('simpletest.settings')->set('maximum_redirects', 1); + config('simpletest.settings')->set('maximum_redirects', 1)->save(); $this->drupalPost('user', $edit, t('Log in'), array( 'query' => array('destination' => 'user/logout'), )); diff -u b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php --- b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php @@ -621,11 +621,11 @@ variable_set('file_private_path', $this->private_files_directory); variable_set('file_temporary_path', $this->temp_files_directory); - // Set the 'simpletest_parent_profile' variable to add the parent profile's + // Set 'parent_profile' of simpletest to add the parent profile's // search path to the child site's search paths. // @see drupal_system_listing() // @todo This may need to be primed like 'install_profile' above. - config('simpletest.settings')->set('parent_profile', $this->originalProfile); + config('simpletest.settings')->set('parent_profile', $this->originalProfile)->save(); // Include the testing profile. variable_set('install_profile', $this->profile);