Commit b8c4f6ec authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #2983648 by ifrik, andypost, Gábor Hojtsy, Artusamak: Reword the Update style button to Save

parent 61cbaba0
......@@ -257,16 +257,6 @@ public function save(array $form, FormStateInterface $form_state) {
$this->messenger()->addStatus($this->t('Changes to the style have been saved.'));
}
/**
* {@inheritdoc}
*/
public function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this->t('Update style');
return $actions;
}
/**
* Updates image effect weights.
*
......
......@@ -199,7 +199,7 @@ public function testStyle() {
$image_path = $this->createSampleImage($style);
$this->assertEqual($this->getImageCount($style), 1, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
$this->drupalPostForm($style_path, $edit, t('Update style'));
$this->drupalPostForm($style_path, $edit, t('Save'));
// Note that after changing the style name, the style path is changed.
$style_path = 'admin/config/media/image-styles/manage/' . $style_name;
......@@ -337,7 +337,7 @@ public function testStyleReplacement() {
'name' => $new_style_name,
'label' => $new_style_label,
];
$this->drupalPostForm($style_path . $style_name, $edit, t('Update style'));
$this->drupalPostForm($style_path . $style_name, $edit, t('Save'));
$this->assertText(t('Changes to the style have been saved.'), format_string('Style %name was renamed to %new_name.', ['%name' => $style_name, '%new_name' => $new_style_name]));
$this->drupalGet('node/' . $nid);
......
......@@ -103,7 +103,7 @@ public function testFlush() {
}
$this->drupalPostForm($style_path . '/effects/' . $uuids['image_scale'] . '/delete', [], t('Delete'));
$this->assertResponse(200);
$this->drupalPostForm($style_path, [], t('Update style'));
$this->drupalPostForm($style_path, [], t('Save'));
$this->assertResponse(200);
// Post flush, expected 1 image in the 'public' wrapper (sample.png).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment