You are here

public function MigrateExecutableMemoryExceededTest::testMemoryNotExceeded in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php \Drupal\Tests\migrate\Unit\MigrateExecutableMemoryExceededTest::testMemoryNotExceeded()

Tests memoryExceeded when memory usage is not exceeded.

File

core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php, line 116
Contains \Drupal\Tests\migrate\Unit\MigrateExecutableMemoryExceededTest.

Class

MigrateExecutableMemoryExceededTest
Tests the \Drupal\migrate\MigrateExecutable::memoryExceeded() method.

Namespace

Drupal\Tests\migrate\Unit

Code

public function testMemoryNotExceeded() {
  $this
    ->runMemoryExceededTest('', FALSE, floor($this->memoryLimit * 0.85) - 1);
}