public function MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay in Drupal 8
Same name and namespace in other branches
- 9 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityDisplayTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay()
- 10 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityDisplayTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay()
Tests the Drupal 7 user picture to Drupal 8 entity display migration.
File
- core/
modules/ user/ tests/ src/ Kernel/ Migrate/ d7/ MigrateUserPictureEntityDisplayTest.php, line 36
Class
- MigrateUserPictureEntityDisplayTest
- User picture entity display.
Namespace
Drupal\Tests\user\Kernel\Migrate\d7Code
public function testUserPictureEntityDisplay() {
$component = EntityViewDisplay::load('user.user.default')
->getComponent('user_picture');
$this
->assertIdentical('image', $component['type']);
$this
->assertIdentical('', $component['settings']['image_style']);
$this
->assertIdentical('content', $component['settings']['image_link']);
}