You are here

public function MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay in Drupal 9

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

Code

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']);
}