protected function MediaMigrationSourceTestBase::setUp in Media Migration 8
Overrides MigrateSourceTestBase::setUp
1 call to MediaMigrationSourceTestBase::setUp()
- FileEntityItemTest::setUp in tests/
src/ Kernel/ Plugin/ migrate/ source/ d7/ FileEntityItemTest.php
1 method overrides MediaMigrationSourceTestBase::setUp()
- FileEntityItemTest::setUp in tests/
src/ Kernel/ Plugin/ migrate/ source/ d7/ FileEntityItemTest.php
File
- tests/
src/ Kernel/ Plugin/ migrate/ source/ d7/ MediaMigrationSourceTestBase.php, line 47
Class
- MediaMigrationSourceTestBase
- Base class for testing media migrate source plugins with native databases.
Namespace
Drupal\Tests\media_migration\Kernel\Plugin\migrate\source\d7Code
protected function setUp() {
parent::setUp();
$destination_plugin = $this
->prophesize(MigrateDestinationInterface::class);
$destination_plugin
->getPluginId()
->willReturn($this
->randomMachineName(16));
$this->migration
->getDestinationPlugin()
->willReturn($destination_plugin
->reveal());
$this
->createSourceMigrationConnection();
$this->sourceDatabase = Database::getConnection('default', 'migrate');
}