function TestMigrateExecutable::setMemoryUsage

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable::setMemoryUsage()
  2. 8.9.x core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable::setMemoryUsage()
  3. 10 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable::setMemoryUsage()

Sets the fake memory usage.

Parameters

int $memory_usage: The fake memory usage value.

int $cleared_memory_usage: (optional) The fake cleared memory value. Defaults to NULL.

File

core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php, line 103

Class

TestMigrateExecutable
Tests MigrateExecutable.

Namespace

Drupal\Tests\migrate\Unit

Code

public function setMemoryUsage($memory_usage, $cleared_memory_usage = NULL) {
    $this->memoryUsage = $memory_usage;
    $this->clearedMemoryUsage = $cleared_memory_usage;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.