Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / forum / tests / src / Functional / ForumIndexTest.php
index 53c8364db0152a3454ada12e6e7b121459823753..8e01a6fade5bfa0a26af05ac7069bcf50ee13693 100644 (file)
@@ -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.');