diff core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php	Thu Feb 28 13:21:36 2019 +0000
@@ -44,14 +44,11 @@
    *   required and memory_limit, and the expected return value.
    */
   public function providerTestCheckMemoryLimit() {
-    $memory_limit = ini_get('memory_limit');
-    $twice_avail_memory = ($memory_limit * 2) . 'MB';
-
     return [
       // Minimal amount of memory should be available.
       ['30MB', NULL, TRUE],
-      // Exceed a custom (unlimited) memory limit.
-      [$twice_avail_memory, -1, TRUE],
+      // Test an unlimited memory limit.
+      ['9999999999YB', -1, TRUE],
       // Exceed a custom memory limit.
       ['30MB', '16MB', FALSE],
       // Available = required.