function MigrationPluginManagerTest::setUp

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Unit\MigrationPluginManagerTest::setUp()
  2. 9 core/modules/migrate/tests/src/Kernel/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Kernel\MigrationPluginManagerTest::setUp()
  3. 10 core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Unit\MigrationPluginManagerTest::setUp()
  4. 10 core/modules/migrate/tests/src/Kernel/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Kernel\MigrationPluginManagerTest::setUp()
  5. 11.x core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Unit\MigrationPluginManagerTest::setUp()
  6. 11.x core/modules/migrate/tests/src/Kernel/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Kernel\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\Unit

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.