class EntityContentBaseTest extends EntityTestBase
{ /**
* Tests basic entity save.
*
* @covers ::import
*/
public function testImport() { $bundles =
[];
$destination =
new EntityTestDestination([], '',
[],
$this->migration->
reveal(),
$this->storage->
reveal(),
$bundles,
$this->entityFieldManager->
reveal(),
$this->
prophesize(FieldTypePluginManagerInterface::
class)->
reveal(),
$this->
prophesize(AccountSwitcherInterface::
class)->
reveal() );
$entity =
$this->
prophesize(ContentEntityInterface::
class);
$entity->
isValidationRequired() ->
shouldBeCalledTimes(1
);
// Assert that save is called.