diff --git a/core/modules/node/src/Tests/Views/BulkFormTest.php b/core/modules/node/src/Tests/Views/BulkFormTest.php index 56d0d66..7da2042 100644 --- a/core/modules/node/src/Tests/Views/BulkFormTest.php +++ b/core/modules/node/src/Tests/Views/BulkFormTest.php @@ -47,7 +47,7 @@ public function testBulkForm() { $this->drupalPostForm(NULL, $edit, t('Apply')); // Re-load the node and check the status. $node_storage->resetCache(array($node->id())); - $node = Node::load($node->id()); + $node = $node_storage->load($node->id()); $this->assertFalse($node->isPublished(), 'Node has been unpublished'); // Publish action. @@ -58,7 +58,7 @@ public function testBulkForm() { $this->drupalPostForm(NULL, $edit, t('Apply')); // Re-load the node and check the status. $node_storage->resetCache(array($node->id())); - $node = Node::load($node->id()); + $node = $node_storage->load($node->id()); $this->assertTrue($node->isPublished(), 'Node has been published'); // Make sticky action. @@ -72,7 +72,7 @@ public function testBulkForm() { $this->drupalPostForm(NULL, $edit, t('Apply')); // Re-load the node and check the status and sticky flag. $node_storage->resetCache(array($node->id())); - $node = Node::load($node->id()); + $node = $node_storage->load($node->id()); $this->assertTrue($node->isPublished(), 'Node has been published'); $this->assertTrue($node->isSticky(), 'Node has been made sticky'); @@ -84,7 +84,7 @@ public function testBulkForm() { $this->drupalPostForm(NULL, $edit, t('Apply')); // Re-load the node and check the sticky flag. $node_storage->resetCache(array($node->id())); - $node = Node::load($node->id()); + $node = $node_storage->load($node->id()); $this->assertFalse($node->isSticky(), 'Node is not sticky anymore'); // Promote to front page. @@ -98,7 +98,7 @@ public function testBulkForm() { $this->drupalPostForm(NULL, $edit, t('Apply')); // Re-load the node and check the status and promoted flag. $node_storage->resetCache(array($node->id())); - $node = Node::load($node->id()); + $node = $node_storage->load($node->id()); $this->assertTrue($node->isPublished(), 'Node has been published'); $this->assertTrue($node->isPromoted(), 'Node has been promoted to the front page'); @@ -110,7 +110,7 @@ public function testBulkForm() { $this->drupalPostForm(NULL, $edit, t('Apply')); // Re-load the node and check the promoted flag. $node_storage->resetCache(array($node->id())); - $node = Node::load($node->id()); + $node = $node_storage->load($node->id()); $this->assertFalse($node->isPromoted(), 'Node has been demoted'); // Delete node. @@ -122,7 +122,7 @@ public function testBulkForm() { $this->drupalPostForm(NULL, array(), t('Delete')); // Re-load the node and check if it has been deleted. $node_storage->resetCache(array($node->id())); - $node = Node::load($node->id()); + $node = $node_storage->load($node->id()); $this->assertNull($node, 'Node has been deleted'); }