X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fimage%2Fsrc%2FTests%2FImageAdminStylesTest.php;fp=web%2Fcore%2Fmodules%2Fimage%2Fsrc%2FTests%2FImageAdminStylesTest.php;h=38fd98487606a7a3f15dbc33bc8c26857313a736;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=5313b7fdbbb792e1028269c1d88f8d8917f6887e;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/image/src/Tests/ImageAdminStylesTest.php b/web/core/modules/image/src/Tests/ImageAdminStylesTest.php index 5313b7fdb..38fd98487 100644 --- a/web/core/modules/image/src/Tests/ImageAdminStylesTest.php +++ b/web/core/modules/image/src/Tests/ImageAdminStylesTest.php @@ -203,6 +203,10 @@ class ImageAdminStylesTest extends ImageFieldTestBase { $this->assertTitle(t('Edit style @name | Drupal', ['@name' => $style_label])); $this->assertResponse(200, format_string('Image style %original renamed to %new', ['%original' => $style->id(), '%new' => $style_name])); + // Check that the available image effects are properly sorted. + $option = $this->xpath('//select[@id=:id]//option', [':id' => 'edit-new--2']); + $this->assertTrue($option[1] == 'Ajax test', '"Ajax test" is the first selectable effect.'); + // Check that the image was flushed after updating the style. // This is especially important when renaming the style. Make sure that // the old image directory has been deleted.