protected function EntityRevision::updateEntity in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\destination\EntityRevision::updateEntity()
Don't test method from base class.
This method is from the parent and we aren't concerned with the inner workings of its implementation which would trickle into mock assertions. An empty implementation avoids this.
Overrides EntityContentBase::updateEntity
File
- core/
modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php, line 229 - Contains \Drupal\Tests\migrate\Unit\destination\EntityRevisionTest.
Class
- EntityRevision
- Mock that exposes from internal methods for testing.
Namespace
Drupal\Tests\migrate\Unit\destinationCode
protected function updateEntity(EntityInterface $entity, Row $row) {
return $entity;
}