summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2019-01-08 12:10:21 (GMT)
committerAlex Pott2019-01-08 12:10:27 (GMT)
commit7041c1c520ff5f94f88048353165983efa8cb9a7 (patch)
tree37e89522508d2a53405cef69a8d84cc01102f5a5
parent305fd923942dd0ae267e00bb2da596b54f4ada44 (diff)
Issue #3024259 by Pol, alexpott: [PHP 7.3] Fix EnvironmentTest::providerTestCheckMemoryLimit() notice
(cherry picked from commit e57c4a13e6085d1cd7cb47b0f81aaed41d7473bb)
-rw-r--r--core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php b/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php
index d167958..5d484b2 100644
--- a/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php
@@ -44,14 +44,11 @@ class EnvironmentTest extends TestCase {
* 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.