protected function MigrateExecutableMemoryExceededTest::setUp in Drupal 8
Overrides UnitTestCase::setUp
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrateExecutableMemoryExceededTest.php, line 52
Class
- MigrateExecutableMemoryExceededTest
- Tests the \Drupal\migrate\MigrateExecutable::memoryExceeded() method.
Namespace
Drupal\Tests\migrate\UnitCode
protected function setUp() {
parent::setUp();
$this->migration = $this
->getMigration();
$this->message = $this
->createMock('Drupal\\migrate\\MigrateMessageInterface');
$this->executable = new TestMigrateExecutable($this->migration, $this->message);
$this->executable
->setStringTranslation($this
->getStringTranslationStub());
}