Commit 08746e85 authored by alexpott's avatar alexpott

Issue #2241727 by mon_franco | YesCT: Remove button name override and update...

Issue #2241727 by mon_franco | YesCT: Remove button name override and update tests for that rename of Save to Save configuration in .
parent c9bd67a8
......@@ -213,7 +213,7 @@ function testAccountLanguageSettingsUI() {
* TRUE if the assertion succeeded, FALSE otherwise.
*/
protected function assertSettings($entity_type, $bundle, $enabled, $edit) {
$this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save'));
$this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
$args = array('@entity_type' => $entity_type, '@bundle' => $bundle, '@enabled' => $enabled ? 'enabled' : 'disabled');
$message = format_string('Translation for entity @entity_type (@bundle) is @enabled.', $args);
\Drupal::entityManager()->clearCachedDefinitions();
......
......@@ -107,7 +107,7 @@ function testImageFieldSync() {
'settings[entity_test_mul][entity_test_mul][columns][field_test_et_ui_image][alt]' => TRUE,
'settings[entity_test_mul][entity_test_mul][columns][field_test_et_ui_image][title]' => TRUE,
);
$this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save'));
$this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
$errors = $this->xpath('//div[contains(@class, "messages--error")]');
$this->assertFalse($errors, 'Settings correctly stored.');
$this->assertFieldChecked('edit-settings-entity-test-mul-entity-test-mul-columns-field-test-et-ui-image-alt');
......
......@@ -137,10 +137,6 @@ public function buildForm(array $form, FormStateInterface $form_state) {
}
$form = parent::buildForm($form, $form_state);
// @todo Remove this override. There are tests that check for explicitly for
// the button label which need to be adapted for that.
// https://drupal.org/node/2241727
$form['actions']['submit']['#value'] = $this->t('Save');
return $form;
}
......
......@@ -63,7 +63,7 @@ function testValidLanguageConfigSchema() {
$edit['settings[user][user][settings][language][language_show]'] = TRUE;
$edit['settings[user][user][settings][language][langcode]'] = 'en';
$this->drupalPostForm($settings_path, $edit, t('Save'));
$this->drupalPostForm($settings_path, $edit, t('Save configuration'));
$config_data = \Drupal::config('language.settings')->get();
// Make sure configuration saved correctly.
......
......@@ -58,7 +58,7 @@ protected function setUp() {
'settings[node][page][fields][body]' => 1,
'settings[node][page][settings][language][language_show]' => 1,
);
$this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save'));
$this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
$definitions = \Drupal::entityManager()->getFieldDefinitions('node', 'page');
$this->assertTrue($definitions['path']->isTranslatable(), 'Node path is translatable.');
......
......@@ -54,7 +54,7 @@ public function testMultilingualSearchFilter() {
'settings[node][' . $type->type . '][fields][title]' => TRUE,
'settings[node][' . $type->type . '][fields][body]' => TRUE,
);
$this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save'));
$this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
// Add a node in English, with title "sandwich".
$values = array(
......
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