You are here

public function MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Tests/Migrate/MigrateUserPictureEntityDisplayTest.php \Drupal\user\Tests\Migrate\MigrateUserPictureEntityDisplayTest::testUserPictureEntityDisplay()

Tests the Drupal 7 user picture to Drupal 8 entity display migration.

File

core/modules/user/src/Tests/Migrate/MigrateUserPictureEntityDisplayTest.php, line 41
Contains \Drupal\user\Tests\Migrate\MigrateUserPictureEntityDisplayTest.

Class

MigrateUserPictureEntityDisplayTest
User picture entity display.

Namespace

Drupal\user\Tests\Migrate

Code

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