X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdiff%2Fsrc%2FTests%2FDiffLocaleTest.php;fp=web%2Fmodules%2Fcontrib%2Fdiff%2Fsrc%2FTests%2FDiffLocaleTest.php;h=1779e26efff51427fc209b3e951721a5f487a518;hp=15bd871d6b60844c53817d6976786cc5b6caad8a;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/diff/src/Tests/DiffLocaleTest.php b/web/modules/contrib/diff/src/Tests/DiffLocaleTest.php index 15bd871d6..1779e26ef 100644 --- a/web/modules/contrib/diff/src/Tests/DiffLocaleTest.php +++ b/web/modules/contrib/diff/src/Tests/DiffLocaleTest.php @@ -1,6 +1,7 @@ 'English node', 'langcode[0][value]' => 'en', ); - $this->drupalPostForm('node/add/article', $edit, t('Save and publish')); + $this->drupalPostNodeForm('node/add/article', $edit, t('Save and publish')); $english_node = $this->drupalGetNodeByTitle('English node'); $this->drupalGet('node/' . $english_node->id() . '/translations'); @@ -71,7 +74,7 @@ class DiffLocaleTest extends DiffTestBase { 'title[0][value]' => 'French node', 'revision' => FALSE, ); - $this->drupalPostForm(NULL, $edit, t('Save and keep published (this translation)')); + $this->drupalPostNodeForm(NULL, $edit, t('Save and keep published (this translation)')); $this->rebuildContainer(); $english_node = $this->drupalGetNodeByTitle('English node'); $french_node = $english_node->getTranslation('fr'); @@ -81,12 +84,12 @@ class DiffLocaleTest extends DiffTestBase { 'title[0][value]' => 'Updated title', 'revision' => TRUE, ); - $this->drupalPostForm('node/' . $english_node->id() . '/edit', $edit, t('Save and keep published (this translation)')); + $this->drupalPostNodeForm('node/' . $english_node->id() . '/edit', $edit, t('Save and keep published (this translation)')); $edit = array( 'title[0][value]' => 'Le titre', 'revision' => TRUE, ); - $this->drupalPostForm('fr/node/' . $english_node->id() . '/edit', $edit, t('Save and keep published (this translation)')); + $this->drupalPostNodeForm('fr/node/' . $english_node->id() . '/edit', $edit, t('Save and keep published (this translation)')); // View differences between revisions. Check that they don't mix up. $this->drupalGet('node/' . $english_node->id() . '/revisions');