function EntityRevision::updateEntity

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\destination\EntityRevision::updateEntity()
  2. 10 core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\destination\EntityRevision::updateEntity()
  3. 11.x 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

Class

EntityRevision
Mock that exposes from internal methods for testing.

Namespace

Drupal\Tests\migrate\Unit\destination

Code

protected function updateEntity(EntityInterface $entity, Row $row) {
    return $entity;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.