X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fforum%2Ftests%2Fsrc%2FFunctional%2FForumIndexTest.php;h=8e01a6fade5bfa0a26af05ac7069bcf50ee13693;hp=53c8364db0152a3454ada12e6e7b121459823753;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/forum/tests/src/Functional/ForumIndexTest.php b/web/core/modules/forum/tests/src/Functional/ForumIndexTest.php index 53c8364db..8e01a6fad 100644 --- a/web/core/modules/forum/tests/src/Functional/ForumIndexTest.php +++ b/web/core/modules/forum/tests/src/Functional/ForumIndexTest.php @@ -44,7 +44,7 @@ class ForumIndexTest extends BrowserTestBase { $this->drupalGet("forum/$tid"); $this->clickLink(t('Add new @node_type', ['@node_type' => 'Forum topic'])); $this->assertUrl('node/add/forum', ['query' => ['forum_id' => $tid]]); - $this->drupalPostForm(NULL, $edit, t('Save and publish')); + $this->drupalPostForm(NULL, $edit, t('Save')); // Check that the node exists in the database. $node = $this->drupalGetNodeByTitle($title); @@ -69,9 +69,9 @@ class ForumIndexTest extends BrowserTestBase { $this->assertCacheTag('taxonomy_term:' . $tid); $this->assertCacheTag('taxonomy_term:' . $tid_child); - // Unpublish the node. - $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save and unpublish')); + $edit = ['status[value]' => FALSE]; + $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save')); $this->drupalGet('node/' . $node->id()); $this->assertText(t('Access denied'), 'Unpublished node is no longer accessible.');