function MigrateUserPictureEntityFormDisplayTest::testEntityFormDisplaySettings

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.