You are here

public function TestMigrateExecutable::setMemoryUsage in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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.

File

core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php, line 105
Contains \Drupal\Tests\migrate\Unit\TestMigrateExecutable.

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;
}