public function MigrationPluginManagerTest::setUp in Drupal 9
Same name in this branch
- 9 core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Unit\MigrationPluginManagerTest::setUp()
- 9 core/modules/migrate/tests/src/Kernel/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Kernel\MigrationPluginManagerTest::setUp()
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Unit\MigrationPluginManagerTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrationPluginManagerTest.php, line 25
Class
- MigrationPluginManagerTest
- @coversDefaultClass \Drupal\migrate\Plugin\MigrationPluginManager @group migrate
Namespace
Drupal\Tests\migrate\UnitCode
public function setUp() : void {
parent::setUp();
// Get a plugin manager for testing.
$module_handler = $this
->createMock('Drupal\\Core\\Extension\\ModuleHandlerInterface');
$cache_backend = $this
->createMock('Drupal\\Core\\Cache\\CacheBackendInterface');
$language_manager = $this
->createMock('Drupal\\Core\\Language\\LanguageManagerInterface');
$this->pluginManager = new MigrationPluginManager($module_handler, $cache_backend, $language_manager);
}