function MigrateUserPictureFieldTest::testUserPictureField

Same name in other branches
  1. 9 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureFieldTest::testUserPictureField()
  2. 8.9.x core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureFieldTest::testUserPictureField()
  3. 10 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureFieldTest::testUserPictureField()

Tests the user picture field migration.

File

core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php, line 34

Class

MigrateUserPictureFieldTest
User picture field migration.

Namespace

Drupal\Tests\user\Kernel\Migrate\d7

Code

public function testUserPictureField() : void {
    
    /** @var \Drupal\field\FieldStorageConfigInterface $field_storage */
    $field_storage = FieldStorageConfig::load('user.user_picture');
    $this->assertInstanceOf(FieldStorageConfigInterface::class, $field_storage);
    $this->assertSame('user.user_picture', $field_storage->id());
    $this->assertSame('image', $field_storage->getType());
    $this->assertSame('user', $field_storage->getTargetEntityTypeId());
}

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