Issue #3092268 by dww, ravi.shankar: Replace call of deprecated drupal_set_time_limit() function

merge-requests/2419/head
catch 2019-11-26 14:37:25 +00:00
parent af16e10d1e
commit 816be32b6f
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
*/
use Drupal\Component\FileSystem\FileSystem;
use Drupal\Component\Utility\Environment;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Timer;
use Drupal\Core\Composer\Composer;
@ -159,7 +160,7 @@ if (!Composer::upgradePHPUnitCheck(Version::id())) {
$test_list = simpletest_script_get_test_list();
// Try to allocate unlimited time to run the tests.
drupal_set_time_limit(0);
Environment::setTimeLimit(0);
simpletest_script_reporter_init();
$tests_to_run = [];