public function MigrateUserPictureEntityFormDisplayTest::testEntityFormDisplaySettings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Tests/Migrate/MigrateUserPictureEntityFormDisplayTest.php \Drupal\user\Tests\Migrate\MigrateUserPictureEntityFormDisplayTest::testEntityFormDisplaySettings()
Tests the field's entity form display settings.
File
- core/
modules/ user/ src/ Tests/ Migrate/ MigrateUserPictureEntityFormDisplayTest.php, line 37 - Contains \Drupal\user\Tests\Migrate\MigrateUserPictureEntityFormDisplayTest.
Class
- MigrateUserPictureEntityFormDisplayTest
- Tests migration of the user_picture field's entity form display settings.
Namespace
Drupal\user\Tests\MigrateCode
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']);
}