diff -u b/core/modules/image/src/Tests/ImageFieldValidateTest.php b/core/modules/image/src/Tests/ImageFieldValidateTest.php --- b/core/modules/image/src/Tests/ImageFieldValidateTest.php +++ b/core/modules/image/src/Tests/ImageFieldValidateTest.php @@ -16,7 +16,7 @@ /** * Test min/max resolution settings. */ - function _testResolution() { + function testResolution() { $field_name = strtolower($this->randomName()); $min_resolution = 50; $max_resolution = 100; @@ -84,7 +84,10 @@ $instance->settings['title_field_required'] = 0; $instance->save(); - $this->drupalPostForm('node/add/article', array(), t('Save and publish')); + $edit = array( + 'title[0][value]' => $this->randomName(), + ); + $this->drupalPostForm('node/add/article', $edit, t('Save and publish')); $this->assertNoText(t('Alternate text field is required.'), 'Node save not failed when alt text not required was set and alt text was left empty.'); $this->assertNoText(t('Title field is required.'), 'Node save not failed when title text not required was set and title text was left empty.');