You are here

public function MigrateUserPictureFieldTest::testUserPictureField in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Tests/Migrate/MigrateUserPictureFieldTest.php \Drupal\user\Tests\Migrate\MigrateUserPictureFieldTest::testUserPictureField()

Test the user picture field migration.

File

core/modules/user/src/Tests/Migrate/MigrateUserPictureFieldTest.php, line 34
Contains \Drupal\user\Tests\Migrate\MigrateUserPictureFieldTest.

Class

MigrateUserPictureFieldTest
User picture field migration.

Namespace

Drupal\user\Tests\Migrate

Code

public function testUserPictureField() {

  /** @var \Drupal\field\FieldStorageConfigInterface $field_storage */
  $field_storage = FieldStorageConfig::load('user.user_picture');
  $this
    ->assertTrue($field_storage instanceof FieldStorageConfigInterface);
  $this
    ->assertIdentical('user.user_picture', $field_storage
    ->id());
  $this
    ->assertIdentical('image', $field_storage
    ->getType());
  $this
    ->assertIdentical('user', $field_storage
    ->getTargetEntityTypeId());
}