diff --git a/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php index 384ec7e..88b587f 100644 --- a/core/modules/file/src/Tests/FileFieldWidgetTest.php +++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php @@ -73,7 +73,7 @@ function testSingleValuedWidget() { $this->assertTrue(isset($label[0]), 'Label for upload found.'); // Save the node and ensure it does not have the file. - $this->drupalPostForm(NULL, array(), t('Save and publish')); + $this->drupalPostForm(NULL, array(), t('Update')); $node = node_load($nid, TRUE); $this->assertTrue(empty($node->{$field_name}->target_id), 'File was successfully removed from the node.'); } diff --git a/core/modules/node/src/Tests/NodeFormButtonsTest.php b/core/modules/node/src/Tests/NodeFormButtonsTest.php index 7241b81..2cc3a08 100644 --- a/core/modules/node/src/Tests/NodeFormButtonsTest.php +++ b/core/modules/node/src/Tests/NodeFormButtonsTest.php @@ -50,11 +50,11 @@ function testNodeFormButtons() { // Verify the buttons on a node edit form. $this->drupalGet('node/' . $node_1->id() . '/edit'); - $this->assertButtons(array(t('Save and publish'), t('Save draft'))); + $this->assertButtons(array(t('Update'), t('Save draft'))); // Save the node and verify it's still published after clicking - // 'Save and publish'. - $this->drupalPostForm(NULL, $edit, t('Save and publish')); + // 'Update'. + $this->drupalPostForm(NULL, $edit, t('Update')); $node_1 = node_load(1, TRUE); $this->assertTrue($node_1->isPublished(), 'Node is published'); @@ -110,7 +110,7 @@ function testNodeFormButtons() { // Verify the buttons on a node add form for an administrator. $this->drupalLogin($this->admin_user); $this->drupalGet('node/add/article'); - $this->assertButtons(array(t('Save as unpublished'), t('Save draft'))); + $this->assertButtons(array(t('Save draft'), t('Save and publish'))); // Verify the node is unpublished by default for a normal user. $this->drupalLogout(); diff --git a/core/modules/node/src/Tests/NodeTranslationUITest.php b/core/modules/node/src/Tests/NodeTranslationUITest.php index bedb3f2..8922093 100644 --- a/core/modules/node/src/Tests/NodeTranslationUITest.php +++ b/core/modules/node/src/Tests/NodeTranslationUITest.php @@ -96,7 +96,7 @@ protected function createEntity($values, $langcode, $bundle_name = NULL) { */ protected function getFormSubmitAction(EntityInterface $entity, $langcode) { if ($entity->getTranslation($langcode)->isPublished()) { - return t('Save and publish') . $this->getFormSubmitSuffix($entity, $langcode); + return t('Update') . $this->getFormSubmitSuffix($entity, $langcode); } else { return t('Update draft') . $this->getFormSubmitSuffix($entity, $langcode); @@ -112,8 +112,8 @@ protected function doTestPublishedStatus() { $languages = $this->container->get('language_manager')->getLanguages(); $actions = array( - t('Save and keep published'), - t('Save and unpublish'), + t('Update'), + t('Save draft'), ); foreach ($actions as $index => $action) {