diff -u b/src/Tests/TokenCommentTest.php b/src/Tests/TokenCommentTest.php --- b/src/Tests/TokenCommentTest.php +++ b/src/Tests/TokenCommentTest.php @@ -47,7 +47,10 @@ } function testCommentTokens() { - $node = Node::create(['type' => 'page', 'title' => $this->randomMachineName()]); + $node = Node::create([ + 'type' => 'page', + 'title' => $this->randomMachineName() + ]); $node->save(); $parent_comment = Comment::create([ diff -u b/src/Tests/TokenNodeTest.php b/src/Tests/TokenNodeTest.php --- b/src/Tests/TokenNodeTest.php +++ b/src/Tests/TokenNodeTest.php @@ -48,7 +48,12 @@ } function testNodeTokens() { - $page = Node::create(['type' => 'page', 'title' => $this->randomMachineName(), 'revision_log' => $this->randomMachineName(), 'path' => array('alias' => '/content/source-node')]); + $page = Node::create([ + 'type' => 'page', + 'title' => $this->randomMachineName(), + 'revision_log' => $this->randomMachineName(), + 'path' => array('alias' => '/content/source-node') + ]); $page->save(); $tokens = array( 'log' => $page->revision_log->value, @@ -69,7 +74,10 @@ ); $this->assertTokens('node', array('node' => $page), $tokens); - $article = Node::create(['type' => 'article', 'title' => $this->randomMachineName()]); + $article = Node::create([ + 'type' => 'article', + 'title' => $this->randomMachineName() + ]); $article->save(); $tokens = array( 'log' => '',