Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / pathauto / src / Tests / PathautoSettingsFormWebTest.php
index 9a4a690928e9e0f52600bdef2f5a1e3e45f54283..40ede78bc05a729195ac4ee54a2eb028d10d1f55 100644 (file)
@@ -97,7 +97,6 @@ class PathautoSettingsFormWebTest extends WebTestBase {
       'notify of path changes',
       'administer url aliases',
       'create url aliases',
-      'administer nodes',
       'bypass node access',
     );
     $this->adminUser = $this->drupalCreateUser($permissions);
@@ -133,11 +132,11 @@ class PathautoSettingsFormWebTest extends WebTestBase {
     $title = 'Verbose settings test';
     $this->drupalGet('/node/add/article');
     $this->assertFieldChecked('edit-path-0-pathauto');
-    $this->drupalPostForm(NULL, array('title[0][value]' => $title), t('Save and publish'));
+    $this->drupalPostForm(NULL, array('title[0][value]' => $title), t('Save'));
     $this->assertText('Created new alias /content/verbose-settings-test for');
 
     $node = $this->drupalGetNodeByTitle($title);
-    $this->drupalPostForm('/node/' . $node->id() . '/edit', array('title[0][value]' => 'Updated title'), t('Save and keep published'));
+    $this->drupalPostForm('/node/' . $node->id() . '/edit', array('title[0][value]' => 'Updated title'), t('Save'));
     $this->assertText('Created new alias /content/updated-title for');
     $this->assertText('replacing /content/verbose-settings-test.');
   }