function 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->assertSame('image', $component['type']);
$this->assertSame('', $component['settings']['image_style']);
$this->assertSame('content', $component['settings']['image_link']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.