Skip to content

Commit

Permalink
Do not assume nodes of all types have 'body' fields. (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrenssen authored Apr 12, 2017
1 parent a6cde12 commit f9f69fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Drupal/DrupalExtension/Context/DrupalContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ public function createNode($type, $title) {
$node = (object) array(
'title' => $title,
'type' => $type,
'body' => $this->getRandom()->name(255),
);
$saved = $this->nodeCreate($node);
// Set internal page on the new node.
Expand Down

0 comments on commit f9f69fd

Please sign in to comment.