MigrateProcessTestCase.php

Same filename and directory in other branches
  1. 11.x core/modules/migrate/tests/src/Unit/process/MigrateProcessTestCase.php
  2. 10 core/modules/migrate/tests/src/Unit/process/MigrateProcessTestCase.php
  3. 9 core/modules/migrate/tests/src/Unit/process/MigrateProcessTestCase.php

Namespace

Drupal\Tests\migrate\Unit\process

File

core/modules/migrate/tests/src/Unit/process/MigrateProcessTestCase.php

View source
<?php

namespace Drupal\Tests\migrate\Unit\process;

use Drupal\Tests\migrate\Unit\MigrateTestCase;
abstract class MigrateProcessTestCase extends MigrateTestCase {
  
  /**
   * @var \Drupal\migrate\Plugin\MigrateProcessInterface
   */
  protected $plugin;
  
  /**
   * @var \Drupal\migrate\Row
   */
  protected $row;
  
  /**
   * @var \Drupal\migrate\MigrateExecutable|\PHPUnit\Framework\MockObject\MockObject
   */
  protected $migrateExecutable;
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    $this->row = $this->getMockBuilder('Drupal\\migrate\\Row')
      ->disableOriginalConstructor()
      ->getMock();
    $this->migrateExecutable = $this->getMockBuilder('Drupal\\migrate\\MigrateExecutable')
      ->disableOriginalConstructor()
      ->getMock();
    parent::setUp();
  }

}

Classes

Title Deprecated Summary
MigrateProcessTestCase

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