aboutsummaryrefslogtreecommitdiff
path: root/mod/test
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-12 10:39:08 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-12 10:39:08 +0000
commitdb8bdea8f4ce480cb10db3a21a5cd404bb334960 (patch)
tree4ea51aaa1a9e45fb0f3d39c12d780d3d5a212402 /mod/test
parent5eb30685c8da7911fe9f48c708f9d7a99b0abe39 (diff)
downloadelgg-db8bdea8f4ce480cb10db3a21a5cd404bb334960.tar.gz
elgg-db8bdea8f4ce480cb10db3a21a5cd404bb334960.tar.bz2
Fixing incorrect primary key
git-svn-id: https://code.elgg.org/elgg/trunk@180 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/test')
-rw-r--r--mod/test/index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/test/index.php b/mod/test/index.php
index b068c4dd4..e8940c6a4 100644
--- a/mod/test/index.php
+++ b/mod/test/index.php
@@ -8,6 +8,12 @@
$body = elgg_view("testplugin/pageshell");
page_draw("Test plugin",$body);
-
+ $object = new ElggObject();
+ $object->type = "forum";
+ $object->title = "Howdy!";
+ $object->description = "I am the very model of a modern major general";
+ $object->access = 2;
+ $object->save();
+ $object->setMetadata('parent',0,2);
?> \ No newline at end of file