public function TestMigrateExecutable::setMemoryUsage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable::setMemoryUsage()
- 9 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 101
Class
- TestMigrateExecutable
- Tests MigrateExecutable.
Namespace
Drupal\Tests\migrate\UnitCode
public function setMemoryUsage($memory_usage, $cleared_memory_usage = NULL) {
$this->memoryUsage = $memory_usage;
$this->clearedMemoryUsage = $cleared_memory_usage;
}