You are here

public function TestMigrateExecutable::setMemoryUsage in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable::setMemoryUsage()
  2. 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 100

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