X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fsrc%2FTests%2FClassic%2FParagraphsAccessTest.php;fp=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fsrc%2FTests%2FClassic%2FParagraphsAccessTest.php;h=234b2802bbd7e4879931506461edd1e91d4a06c7;hp=b31d6b64809bc03dabfc4783f4fffcbb6e828807;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/modules/contrib/paragraphs/src/Tests/Classic/ParagraphsAccessTest.php b/web/modules/contrib/paragraphs/src/Tests/Classic/ParagraphsAccessTest.php index b31d6b648..234b2802b 100644 --- a/web/modules/contrib/paragraphs/src/Tests/Classic/ParagraphsAccessTest.php +++ b/web/modules/contrib/paragraphs/src/Tests/Classic/ParagraphsAccessTest.php @@ -95,7 +95,7 @@ class ParagraphsAccessTest extends ParagraphsTestBase { $image_url = file_url_transform_relative($img1_url); $this->assertRaw($image_url, 'Image was found in preview'); $this->clickLink(t('Back to content editing')); - $this->drupalPostForm(NULL, [], 'Save and publish'); + $this->drupalPostForm(NULL, [], t('Save')); $node = $this->drupalGetNodeByTitle('Security test node'); @@ -130,7 +130,7 @@ class ParagraphsAccessTest extends ParagraphsTestBase { 'title[0][value]' => 'delete_permissions', 'field_paragraphs_demo[0][subform][field_text_demo][0][value]' => 'Test', ]; - $this->drupalPostForm(NULL, $edit, 'Save and publish'); + $this->drupalPostForm(NULL, $edit, t('Save')); // Edit the node. $this->clickLink(t('Edit')); // Check the remove button is present. @@ -138,7 +138,7 @@ class ParagraphsAccessTest extends ParagraphsTestBase { // Delete the Paragraph and save. $this->drupalPostAjaxForm(NULL, [], 'field_paragraphs_demo_0_remove'); $this->drupalPostAjaxForm(NULL, [], 'field_paragraphs_demo_0_confirm_remove'); - $this->drupalPostForm(NULL, [], t('Save and keep published')); + $this->drupalPostForm(NULL, [], t('Save')); $node = $this->getNodeByTitle('delete_permissions'); $this->assertUrl('node/' . $node->id()); }