protected function EntityTestBase::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestBase::setUp()
- 9 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestBase::setUp()
Overrides UnitTestCase::setUp
1 method overrides EntityTestBase::setUp()
- EntityRevisionTest::setUp in core/
modules/ migrate/ tests/ src/ Unit/ Plugin/ migrate/ destination/ EntityRevisionTest.php
File
- core/
modules/ migrate/ tests/ src/ Unit/ Plugin/ migrate/ destination/ EntityTestBase.php, line 44 - Contains \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestBase.
Class
- EntityTestBase
- Base test class for entity migration destination functionality.
Namespace
Drupal\Tests\migrate\Unit\Plugin\migrate\destinationCode
protected function setUp() : void {
parent::setUp();
$this->migration = $this
->prophesize(MigrationInterface::class);
$this->storage = $this
->prophesize(EntityStorageInterface::class);
$this->entityType = $this
->prophesize(EntityTypeInterface::class);
$this->entityType
->getPluralLabel()
->willReturn('foo');
$this->storage
->getEntityType()
->willReturn($this->entityType
->reveal());
$this->storage
->getEntityTypeId()
->willReturn('foo');
$this->entityFieldManager = $this
->prophesize(EntityFieldManagerInterface::class);
}