You are here

protected function MigrateExecutableMemoryExceededTest::setUp in Zircon Profile 8

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

Overrides UnitTestCase::setUp

File

core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php, line 55
Contains \Drupal\Tests\migrate\Unit\MigrateExecutableMemoryExceededTest.

Class

MigrateExecutableMemoryExceededTest
Tests the \Drupal\migrate\MigrateExecutable::memoryExceeded() method.

Namespace

Drupal\Tests\migrate\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->migration = $this
    ->getMigration();
  $this->message = $this
    ->getMock('Drupal\\migrate\\MigrateMessageInterface');
  $this->executable = new TestMigrateExecutable($this->migration, $this->message);
  $this->executable
    ->setStringTranslation($this
    ->getStringTranslationStub());
}