'administer pathauto',
'administer url aliases',
'create url aliases',
- 'administer nodes',
'bypass node access',
'access content overview',
);
// Create a node by saving the node form.
$title = ' Testing: node title [';
$automatic_alias = '/content/testing-node-title';
- $this->drupalPostForm(NULL, array('title[0][value]' => $title), t('Save and publish'));
+ $this->drupalPostForm(NULL, array('title[0][value]' => $title), t('Save'));
$node = $this->drupalGetNodeByTitle($title);
// Look for alias generated in the form.
'path[0][pathauto]' => FALSE,
'path[0][alias]' => $manual_alias,
);
- $this->drupalPostForm($node->toUrl('edit-form'), $edit, t('Save and keep published'));
+ $this->drupalPostForm($node->toUrl('edit-form'), $edit, t('Save'));
$this->assertText(t('@type @title has been updated.', array('@type' => 'page', '@title' => $title)));
// Check that the automatic alias checkbox is now unchecked by default.
$this->assertFieldByName('path[0][alias]', $manual_alias);
// Submit the node form with the default values.
- $this->drupalPostForm(NULL, array('path[0][pathauto]' => FALSE), t('Save and keep published'));
+ $this->drupalPostForm(NULL, array('path[0][pathauto]' => FALSE), t('Save'));
$this->assertText(t('@type @title has been updated.', array('@type' => 'page', '@title' => $title)));
// Test that the old (automatic) alias has been deleted and only accessible
'path[0][pathauto]' => TRUE,
'path[0][alias]' => '/should-not-get-created',
);
- $this->drupalPostForm('node/add/page', $edit, t('Save and publish'));
+ $this->drupalPostForm('node/add/page', $edit, t('Save'));
$this->assertNoAliasExists(array('alias' => 'should-not-get-created'));
$node = $this->drupalGetNodeByTitle($title);
$this->assertEntityAlias($node, '/content/automatic-title');
$edit = array();
$edit['title'] = 'My test article';
$this->drupalCreateNode($edit);
- //$this->drupalPostForm(NULL, $edit, t('Save and keep published'));
+ //$this->drupalPostForm(NULL, $edit, t('Save'));
$node = $this->drupalGetNodeByTitle($edit['title']);
// Pathauto checkbox should still not exist.
'title[0][value]' => 'Sample article',
'path[0][alias]' => '/sample-article',
];
- $this->drupalPostForm('node/add/article', $edit, t('Save and publish'));
+ $this->drupalPostForm('node/add/article', $edit, t('Save'));
$this->assertText(t('article Sample article has been created.'));
// Test the alias.