diff --cc core/modules/image/src/Tests/ImageFieldTestBase.php index 9984a76,0079e15..0000000 --- a/core/modules/image/src/Tests/ImageFieldTestBase.php +++ b/core/modules/image/src/Tests/ImageFieldTestBase.php @@@ -66,11 -66,11 +66,13 @@@ abstract class ImageFieldTestBase exten * @param array $field_settings * A list of instance settings that will be added to the instance defaults. * @param array $widget_settings - * A list of widget settings that will be added to the widget defaults. + * Widget settings to be added to the widget defaults. + * @param array $formatter_settings + * Formatter settings to be added to the formatter defaults. + * @param string $description + * A description for the field. */ - function createImageField($name, $type_name, $storage_settings = array(), $field_settings = array(), $widget_settings = array(), $formatter_settings = array()) { - function createImageField($name, $type_name, $storage_settings = array(), $field_settings = array(), $widget_settings = array(), $description = '') { ++ function createImageField($name, $type_name, $storage_settings = array(), $field_settings = array(), $widget_settings = array(), $formatter_settings = array(), $description = '') { entity_create('field_storage_config', array( 'field_name' => $name, 'entity_type' => 'node', diff --git a/core/modules/image/src/Tests/ImageFieldWidgetTest.php b/core/modules/image/src/Tests/ImageFieldWidgetTest.php index 1d7850c..4a80c9a 100644 --- a/core/modules/image/src/Tests/ImageFieldWidgetTest.php +++ b/core/modules/image/src/Tests/ImageFieldWidgetTest.php @@ -27,7 +27,7 @@ public function testWidgetElement() { 'min_resolution' => $min_resolution . 'x' . $min_resolution, 'alt_field' => 0, ); - $this->createImageField($field_name, 'article', array(), $field_settings, array(), 'Image test on [site:name]'); + $this->createImageField($field_name, 'article', array(), $field_settings, array(), array(), 'Image test on [site:name]'); $this->drupalGet('node/add/article'); $this->assertNotEqual(0, count($this->xpath('//div[contains(@class, "field--widget-image-image")]')), 'Image field widget found on add/node page', 'Browser'); $this->assertNoText('Image test on [site:name]');