public function MigrateUserPictureEntityFormDisplayTest::testEntityFormDisplaySettings in Drupal 8
Same name and namespace in other branches
- 9 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityFormDisplayTest.php \Drupal\Tests\user\Kernel\Migrate\d7\MigrateUserPictureEntityFormDisplayTest::testEntityFormDisplaySettings()
- 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\d7Code
public function testEntityFormDisplaySettings() {
$component = EntityFormDisplay::load('user.user.default')
->getComponent('user_picture');
$this
->assertIdentical('image_image', $component['type']);
$this
->assertIdentical('throbber', $component['settings']['progress_indicator']);
$this
->assertIdentical('thumbnail', $component['settings']['preview_image_style']);
}