Issue #3134470 by heddn, gabesullice, sudiptadas19, ridhimaabrol24, quietone,...
Issue #3134470 by heddn, gabesullice, sudiptadas19, ridhimaabrol24, quietone, mikelutz, Kristen Pol, alexpott, Wim Leers, larowlan, longwave: Switch to entity owner in EntityContentBase during validation
@trigger_error('Calling '.__NAMESPACE__.'\EntityContentBase::__construct() without the $account_switcher argument is deprecated in drupal:9.3.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3142975',E_USER_DEPRECATED);
$this->expectDeprecation('Calling Drupal\migrate\Plugin\migrate\destination\EntityContentBase::__construct() without the $account_switcher argument is deprecated in drupal:9.3.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3142975');
// The second user import should fail validation because they do not have
// access to use "filter_test" filter.
$this->assertSame(sprintf('2: [entity_test: 2]: user_id.0.target_id=This entity (<em class="placeholder">user</em>: <em class="placeholder">%s</em>) cannot be referenced.||%s.0.format=The value you selected is not a valid choice.',$normal_user->id(),$field_name),$this->messages[0]);