diff --git a/core/modules/node/src/Tests/Views/BulkFormTest.php b/core/modules/node/src/Tests/Views/BulkFormTest.php index 12b60c5..b823e76 100644 --- a/core/modules/node/src/Tests/Views/BulkFormTest.php +++ b/core/modules/node/src/Tests/Views/BulkFormTest.php @@ -62,7 +62,6 @@ public function testBulkForm() { $this->assertTrue($node->isPublished(), 'Node has been published'); // Make sticky action. - $node->setPublished(FALSE); $node->save(); $this->assertFalse($node->isSticky(), 'Node is not sticky'); $edit = array( @@ -70,7 +69,7 @@ public function testBulkForm() { 'action' => 'node_make_sticky_action', ); $this->drupalPostForm(NULL, $edit, t('Apply')); - // Re-load the node and check the status and sticky flag. + // Re-load the node and check the sticky flag. $node_storage->resetCache(array($node->id())); $node = $node_storage->load($node->id()); $this->assertTrue($node->isSticky(), 'Node has been made sticky'); @@ -87,7 +86,6 @@ public function testBulkForm() { $this->assertFalse($node->isSticky(), 'Node is not sticky anymore'); // Promote to front page. - $node->setPublished(FALSE); $node->save(); $this->assertFalse($node->isPromoted(), 'Node is not promoted to the front page'); $edit = array( @@ -95,7 +93,7 @@ public function testBulkForm() { 'action' => 'node_promote_action', ); $this->drupalPostForm(NULL, $edit, t('Apply')); - // Re-load the node and check the status and promoted flag. + // Re-load the node and check the promoted flag. $node_storage->resetCache(array($node->id())); $node = $node_storage->load($node->id()); $this->assertTrue($node->isPromoted(), 'Node has been promoted to the front page');