You are here

protected function MachineNameTest::setUp in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/FunctionalJavascriptTests/Core/MachineNameTest.php \Drupal\FunctionalJavascriptTests\Core\MachineNameTest::setUp()
  2. 8 core/modules/migrate/tests/src/Unit/process/MachineNameTest.php \Drupal\Tests\migrate\Unit\process\MachineNameTest::setUp()
Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/process/MachineNameTest.php \Drupal\Tests\migrate\Unit\process\MachineNameTest::setUp()

Overrides MigrateProcessTestCase::setUp

File

core/modules/migrate/tests/src/Unit/process/MachineNameTest.php, line 24

Class

MachineNameTest
Tests the machine name process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

protected function setUp() {
  $this->transliteration = $this
    ->getMockBuilder('Drupal\\Component\\Transliteration\\TransliterationInterface')
    ->disableOriginalConstructor()
    ->getMock();
  $this->row = $this
    ->getMockBuilder('Drupal\\migrate\\Row')
    ->disableOriginalConstructor()
    ->getMock();
  $this->migrateExecutable = $this
    ->getMockBuilder('Drupal\\migrate\\MigrateExecutable')
    ->disableOriginalConstructor()
    ->getMock();
  parent::setUp();
}