X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcontent_translation%2Ftests%2Fsrc%2FFunctional%2FContentTranslationLanguageChangeTest.php;h=ae326ef67b821ac14d6b42a8437c68bd56ff4d25;hp=3236a592c3dc091f5516409a799201a662e5daf3;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php b/web/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php index 3236a592c..ae326ef67 100644 --- a/web/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php +++ b/web/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php @@ -73,12 +73,12 @@ class ContentTranslationLanguageChangeTest extends NodeTestBase { $edit = [ 'title[0][value]' => 'english_title', ]; - $this->drupalPostForm(NULL, $edit, t('Save and publish')); + $this->drupalPostForm(NULL, $edit, t('Save')); // Create a translation in French. $this->clickLink('Translate'); $this->clickLink('Add'); - $this->drupalPostForm(NULL, [], t('Save and keep published (this translation)')); + $this->drupalPostForm(NULL, [], t('Save (this translation)')); $this->clickLink('Translate'); // Edit English translation. @@ -90,7 +90,7 @@ class ContentTranslationLanguageChangeTest extends NodeTestBase { 'files[field_image_field_0]' => $images->uri, ]; $this->drupalPostForm(NULL, $edit, t('Upload')); - $this->drupalPostForm(NULL, ['field_image_field[0][alt]' => 'alternative_text'], t('Save and keep published (this translation)')); + $this->drupalPostForm(NULL, ['field_image_field[0][alt]' => 'alternative_text'], t('Save (this translation)')); // Check that the translation languages are correct. $node = $this->getNodeByTitle('english_title'); @@ -109,13 +109,13 @@ class ContentTranslationLanguageChangeTest extends NodeTestBase { 'title[0][value]' => 'english_title', 'test_field_only_en_fr' => 'node created', ]; - $this->drupalPostForm(NULL, $edit, t('Save and publish')); + $this->drupalPostForm(NULL, $edit, t('Save')); $this->assertEqual('node created', \Drupal::state()->get('test_field_only_en_fr')); // Create a translation in French. $this->clickLink('Translate'); $this->clickLink('Add'); - $this->drupalPostForm(NULL, [], t('Save and keep published (this translation)')); + $this->drupalPostForm(NULL, [], t('Save (this translation)')); $this->clickLink('Translate'); // Edit English translation. @@ -137,7 +137,7 @@ class ContentTranslationLanguageChangeTest extends NodeTestBase { 'langcode[0][value]' => 'en', 'field_image_field[0][alt]' => 'alternative_text' ]; - $this->drupalPostForm(NULL, $edit, t('Save and keep published (this translation)')); + $this->drupalPostForm(NULL, $edit, t('Save (this translation)')); // Check that the translation languages are correct. $node = $this->getNodeByTitle('english_title');