diff -u b/core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php b/core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php --- b/core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php +++ b/core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php @@ -22,7 +22,17 @@ /** * {@inheritdoc} */ - public static $modules = ['views', 'views_ui', 'responsive_image', 'field', 'image', 'file', 'entity_test', 'breakpoint', 'responsive_image_test_module']; + public static $modules = [ + 'views', + 'views_ui', + 'responsive_image', + 'field', + 'image', + 'file', + 'entity_test', + 'breakpoint', + 'responsive_image_test_module', + ]; /** * The test views to enable. @@ -62,7 +72,7 @@ ]) ->addImageStyleMapping('responsive_image_test_module.narrow', '1x', [ 'image_mapping_type' => 'image_style', - 'image_mapping' => 'medium' + 'image_mapping' => 'medium', ]) // Test the normal output of mapping to an image style. ->addImageStyleMapping('responsive_image_test_module.wide', '1x', [ @@ -84,11 +94,13 @@ $this->drupalPostForm('admin/structure/views/nojs/add-handler/entity_test_row/default/field', ['name[entity_test__bar.bar]' => TRUE], 'Add and configure field'); // Set the formatter to 'Responsive image'. $this->drupalPostForm(NULL, ['options[type]' => 'responsive_image'], 'Apply'); - $this->assertSession()->responseContains('Responsive image style field is required.'); + $this->assertSession() + ->responseContains('Responsive image style field is required.'); $this->drupalPostForm(NULL, ['options[settings][responsive_image_style]' => self::RESPONSIVE_IMAGE_STYLE_ID], 'Apply'); $this->drupalGet('admin/structure/views/nojs/handler/entity_test_row/default/field/bar'); // Make sure the selected value is set. - $this->assertSession()->fieldValueEquals('options[settings][responsive_image_style]', self::RESPONSIVE_IMAGE_STYLE_ID); + $this->assertSession() + ->fieldValueEquals('options[settings][responsive_image_style]', self::RESPONSIVE_IMAGE_STYLE_ID); } }