You are here

protected function Drupal6SqlBaseTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php, line 69
Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest.

Class

Drupal6SqlBaseTest
Tests the D6 SQL base class.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

protected function setUp() {
  $plugin = 'placeholder_id';

  /** @var \Drupal\Core\State\StateInterface $state */
  $state = $this
    ->getMock('Drupal\\Core\\State\\StateInterface');

  /** @var \Drupal\Core\Entity\EntityManagerInterface $entity_manager */
  $entity_manager = $this
    ->getMock('Drupal\\Core\\Entity\\EntityManagerInterface');
  $this->base = new TestDrupal6SqlBase($this->migrationConfiguration, $plugin, array(), $this
    ->getMigration(), $state, $entity_manager);
  $this->base
    ->setDatabase($this
    ->getDatabase($this->databaseContents));
}