You are here

public function MigrateUserPictureEntityFormDisplayTest::testEntityFormDisplaySettings in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityFormDisplayTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureEntityFormDisplayTest::testEntityFormDisplaySettings()
  2. 10 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityFormDisplayTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureEntityFormDisplayTest::testEntityFormDisplaySettings()

Tests the field's entity form display settings.

File

core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityFormDisplayTest.php, line 32

Class

MigrateUserPictureEntityFormDisplayTest
Tests migration of the user_picture field's entity form display settings.

Namespace

Drupal\Tests\user\Kernel\Migrate\d7

Code

public function testEntityFormDisplaySettings() {
  $component = EntityFormDisplay::load('user.user.default')
    ->getComponent('user_picture');
  $this
    ->assertSame('image_image', $component['type']);
  $this
    ->assertSame('throbber', $component['settings']['progress_indicator']);
  $this
    ->assertSame('thumbnail', $component['settings']['preview_image_style']);
}