You are here

protected function DedupeEntityTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/process/DedupeEntityTest.php \Drupal\Tests\migrate\Unit\process\DedupeEntityTest::setUp()

Overrides MigrateProcessTestCase::setUp

File

core/modules/migrate/tests/src/Unit/process/DedupeEntityTest.php, line 45
Contains \Drupal\Tests\migrate\Unit\process\DedupeEntityTest.

Class

DedupeEntityTest
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\DedupeEntity @group migrate

Namespace

Drupal\Tests\migrate\Unit\process

Code

protected function setUp() {
  $this->entityQuery = $this
    ->getMockBuilder('Drupal\\Core\\Entity\\Query\\QueryInterface')
    ->disableOriginalConstructor()
    ->getMock();
  $this->entityQueryFactory = $this
    ->getMockBuilder('Drupal\\Core\\Entity\\Query\\QueryFactory')
    ->disableOriginalConstructor()
    ->getMock();
  $this->entityQueryFactory
    ->expects($this
    ->any())
    ->method('get')
    ->will($this
    ->returnValue($this->entityQuery));
  parent::setUp();
}