public function MigrateUserPictureFieldInstanceTest::testUserPictureField in Drupal 9
Same name and namespace in other branches
- 8 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldInstanceTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureFieldInstanceTest::testUserPictureField()
- 10 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldInstanceTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureFieldInstanceTest::testUserPictureField()
Tests the user picture field migration.
File
- core/
modules/ user/ tests/ src/ Kernel/ Migrate/ d7/ MigrateUserPictureFieldInstanceTest.php, line 32
Class
- MigrateUserPictureFieldInstanceTest
- User picture field instance migration.
Namespace
Drupal\Tests\user\Kernel\Migrate\d7Code
public function testUserPictureField() {
/** @var \Drupal\field\FieldConfigInterface $field */
$field = FieldConfig::load('user.user.user_picture');
$this
->assertInstanceOf(FieldConfigInterface::class, $field);
$this
->assertSame('user', $field
->getTargetEntityTypeId());
$this
->assertSame('user', $field
->getTargetBundle());
$this
->assertSame('user_picture', $field
->getName());
}