diff --git a/core/modules/node/src/Tests/NodeActionsTest.php b/core/modules/node/src/Tests/NodeActionsTest.php index 969fd1d..d639c63 100644 --- a/core/modules/node/src/Tests/NodeActionsTest.php +++ b/core/modules/node/src/Tests/NodeActionsTest.php @@ -32,9 +32,6 @@ public static function getInfo() { * Tests the unpublish node by keyword action. */ function testNodeUnpublishByKeyword() { - $admin_user = $this->createUser(array('access content', 'bypass node access')); - //$this->drupalLogin($admin_user); - $keyword_1 = $this->randomMachineName(); $keyword_2 = $this->randomMachineName(); @@ -52,7 +49,9 @@ function testNodeUnpublishByKeyword() { /* @var Drupal\node\NodeInterface $node */ $node = Node::create([ - 'body' => array(array('format' => filter_default_format($admin_user), 'value' => $keyword_1)) + 'type' => 'default', + 'title' => 'Contains keywords', + 'body' => array(array('format' => 'fred', 'value' => $keyword_1)) ]); $node->save();