protected function CommerceFieldNameTest::setUp in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/CommerceFieldNameTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\CommerceFieldNameTest::setUp()
- 3.0.x modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/CommerceFieldNameTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\CommerceFieldNameTest::setUp()
Overrides MigrateProcessTestCase::setUp
File
- modules/
commerce/ tests/ src/ Unit/ Plugin/ migrate/ process/ commerce1/ CommerceFieldNameTest.php, line 34
Class
- CommerceFieldNameTest
- Tests the CommerceFieldName plugin.
Namespace
Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1Code
protected function setUp() {
parent::setUp();
$migration_plugin_manager = $this
->getMockBuilder('Drupal\\migrate\\Plugin\\MigrationPluginManagerInterface')
->disableOriginalConstructor()
->getMock();
$this->processPluginManager = $this
->getMockBuilder('Drupal\\migrate\\Plugin\\MigratePluginManagerInterface')
->disableOriginalConstructor()
->getMock();
$this->makeEntityUnique = $this
->getMockBuilder('Drupal\\migrate\\Plugin\\migrate\\process\\MakeUniqueEntityField')
->disableOriginalConstructor()
->getMock();
$this->migrateExecutable = $this
->getMockBuilder('Drupal\\migrate\\MigrateExecutable')
->disableOriginalConstructor()
->getMock();
$this->plugin = new CommerceFieldName([], 'test', [], $migration_plugin_manager, $this->processPluginManager);
}