You are here

public function MigrateUserPictureFieldInstanceTest::testUserPictureField in Zircon Profile 8

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

Test the user picture field migration.

File

core/modules/user/src/Tests/Migrate/MigrateUserPictureFieldInstanceTest.php, line 37
Contains \Drupal\user\Tests\Migrate\MigrateUserPictureFieldInstanceTest.

Class

MigrateUserPictureFieldInstanceTest
User picture field instance migration.

Namespace

Drupal\user\Tests\Migrate

Code

public function testUserPictureField() {

  /** @var \Drupal\field\FieldConfigInterface $field */
  $field = FieldConfig::load('user.user.user_picture');
  $this
    ->assertTrue($field instanceof FieldConfigInterface);
  $this
    ->assertIdentical('user', $field
    ->getTargetEntityTypeId());
  $this
    ->assertIdentical('user', $field
    ->getTargetBundle());
  $this
    ->assertIdentical('user_picture', $field
    ->getName());
}