public function MigrateUserPictureFieldInstanceTest::testUserPictureField in Zircon Profile 8
Same name and namespace in other branches
- 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\MigrateCode
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());
}