Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / paragraphs / src / Tests / Experimental / ParagraphsExperimentalAccessTest.php
index f2d0fdf9193667b9ef767c2247c2a5cef3292896..c37f22b26d484200d4d3cf7ec332c30f93fdb6cd 100644 (file)
@@ -94,7 +94,7 @@ class ParagraphsExperimentalAccessTest extends ParagraphsExperimentalTestBase {
     $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');
 
@@ -129,14 +129,14 @@ class ParagraphsExperimentalAccessTest extends ParagraphsExperimentalTestBase {
       '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.
     $this->assertNotNull($this->xpath('//*[@name="field_paragraphs_demo_0_remove"]'));
     // Delete the Paragraph and save.
     $this->drupalPostAjaxForm(NULL, [], 'field_paragraphs_demo_0_remove');
-    $this->drupalPostForm(NULL, [], t('Save and keep published'));
+    $this->drupalPostForm(NULL, [], t('Save'));
     $node = $this->getNodeByTitle('delete_permissions');
     $this->assertUrl('node/' . $node->id());
   }