2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
// Verify that no image is displayed on the page by checking for the class
// that would be used on the image field.
$this->assertNoPattern('<div class="(.*?)field-name-'.strtr($field_name,'_','-').'(.*?)">',t('No image displayed when no image is attached and no default image specified.'));
// Add a default image to the imagefield instance.
$this->assertText(t('The specified file image-test.png could not be uploaded. The image is too small; the minimum dimensions are 50x50 pixels.'),t('Node save failed when minimum image resolution was not met.'));
// Use image-1.png which has a resolution of 360x240.
$this->assertText(t('The image was resized to fit within the maximum allowed dimensions of 100x100 pixels.'),t('Image exceeding max resolution was properly resized.'));