function MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay

Same name in other branches
  1. 9 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityDisplayTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay()
  2. 8.9.x core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityDisplayTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay()
  3. 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 38

Class

MigrateUserPictureEntityDisplayTest
User picture entity display.

Namespace

Drupal\Tests\user\Kernel\Migrate\d7

Code

public function testUserPictureEntityDisplay() : void {
    $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.