Mercurial > hg > isophonics-drupal-site
comparison core/modules/image/tests/src/Functional/ImageStyleFlushTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
101 foreach ($style->getEffects() as $uuid => $effect) { | 101 foreach ($style->getEffects() as $uuid => $effect) { |
102 $uuids[$effect->getPluginId()] = $uuid; | 102 $uuids[$effect->getPluginId()] = $uuid; |
103 } | 103 } |
104 $this->drupalPostForm($style_path . '/effects/' . $uuids['image_scale'] . '/delete', [], t('Delete')); | 104 $this->drupalPostForm($style_path . '/effects/' . $uuids['image_scale'] . '/delete', [], t('Delete')); |
105 $this->assertResponse(200); | 105 $this->assertResponse(200); |
106 $this->drupalPostForm($style_path, [], t('Update style')); | 106 $this->drupalPostForm($style_path, [], t('Save')); |
107 $this->assertResponse(200); | 107 $this->assertResponse(200); |
108 | 108 |
109 // Post flush, expected 1 image in the 'public' wrapper (sample.png). | 109 // Post flush, expected 1 image in the 'public' wrapper (sample.png). |
110 $this->assertEqual($this->getImageCount($style, 'public'), 1, format_string('Image style %style flushed correctly for %wrapper wrapper.', ['%style' => $style->label(), '%wrapper' => 'public'])); | 110 $this->assertEqual($this->getImageCount($style, 'public'), 1, format_string('Image style %style flushed correctly for %wrapper wrapper.', ['%style' => $style->label(), '%wrapper' => 'public'])); |
111 | 111 |