Skip to content
Snippets Groups Projects
Commit 90b761ec authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1356358 by BTMash: Fixed Unknown variable in generate-d7-content.sh causes PDOException.

parent e9360598
No related branches found
No related tags found
No related merge requests found
...@@ -269,11 +269,14 @@ ...@@ -269,11 +269,14 @@
} }
// Test that upgrade works even on a bundle whose parent module was disabled. // Test that upgrade works even on a bundle whose parent module was disabled.
// This is simulated by creating an existing content type and changing the
// bundle to another type through direct database update queries.
$node_type = 'broken';
$uid = 6; $uid = 6;
$user = user_load($uid); $user = user_load($uid);
$node = new stdClass(); $node = new stdClass();
$node->uid = $uid; $node->uid = $uid;
$node->type = 'broken'; $node->type = 'article';
$body_text = str_repeat("node body ($node_type) - 37", 100); $body_text = str_repeat("node body ($node_type) - 37", 100);
$node->sticky = 0; $node->sticky = 0;
$node->title = "node title 24"; $node->title = "node title 24";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment