You are here

public function TestDrupal6SqlBase::setModuleHandler in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::setModuleHandler()
  2. 10 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::setModuleHandler()

Tweaks Drupal6SqlBase to set a new module handler for tests.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The new module handler to use.

See also

\Drupal\Tests\migrate\Unit\MigrateSqlTestCase

File

core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php, line 190
Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest.

Class

TestDrupal6SqlBase
Extends the Drupal6SqlBase abstract class.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

public function setModuleHandler(ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
}