class EntityTestDestination

Same name and namespace in other branches
  1. 11.x core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestDestination

Stub class for testing EntityContentBase methods.

We want to test things without testing the base class implementations.

Hierarchy

Expanded class hierarchy of EntityTestDestination

File

core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php, line 111

Namespace

Drupal\Tests\migrate\Unit\Plugin\migrate\destination
View source
class EntityTestDestination extends EntityContentBase {
  private $entity = NULL;
  public function setEntity($entity) {
    $this->entity = $entity;
  }
  protected function getEntity(Row $row, array $old_destination_id_values) {
    return $this->entity;
  }
  public static function getEntityTypeId($plugin_id) {
    return 'foo';
  }

}

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