public function MigrationPluginManagerTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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() {
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);
}