public function MigrationStorageTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/tests/src/Unit/MigrationStorageTest.php \Drupal\Tests\migrate\Unit\MigrationStorageTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrationStorageTest.php, line 38 - Contains \Drupal\Tests\migrate\Unit\MigrationStorageTest.
Class
- MigrationStorageTest
- @coversDefaultClass \Drupal\migrate\MigrationStorage @group migrate
Namespace
Drupal\Tests\migrate\UnitCode
public function setUp() {
$this->query = $this
->getMock(QueryInterface::class);
$this->query
->method('condition')
->willReturnSelf();
$query_factory = $this
->getMock(QueryFactoryInterface::class);
$query_factory
->method('get')
->willReturn($this->query);
$this->storage = new TestMigrationStorage($this
->getMock(EntityTypeInterface::class), $this
->getMock(ConfigFactoryInterface::class), $this
->getMock(UuidInterface::class), $this
->getMock(LanguageManagerInterface::class), $query_factory);
}