Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / image / src / Tests / ImageAdminStylesTest.php
index 5313b7fdbbb792e1028269c1d88f8d8917f6887e..38fd98487606a7a3f15dbc33bc8c26857313a736 100644 (file)
@@ -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.