diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-11 01:58:46 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-11 01:58:46 +0000 |
commit | 253c56608eeba50a8e738e6024f833104dda7231 (patch) | |
tree | 649ebca027bf9346b8c5e5f012740b04684743bb /modules/akismet/tests | |
parent | 4312563e8b2f24dcef767849e00013aaa2b52c65 (diff) |
Update setup to match new comment::create() API
Diffstat (limited to 'modules/akismet/tests')
-rw-r--r-- | modules/akismet/tests/Akismet_Helper_Test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/akismet/tests/Akismet_Helper_Test.php b/modules/akismet/tests/Akismet_Helper_Test.php index a508f6c1..866bc645 100644 --- a/modules/akismet/tests/Akismet_Helper_Test.php +++ b/modules/akismet/tests/Akismet_Helper_Test.php @@ -24,8 +24,10 @@ class Akismet_Helper_Test extends Unit_Test_Case { Input::instance()->ip_address = "1.1.1.1"; Kohana::$user_agent = "Akismet_Helper_Test"; + $root = ORM::factory("item", 1); $this->_comment = comment::create( - "John Doe", "John@gallery2.org", "This is a comment", 0, "http://gallery2.org"); + $root, user::guest(), "This is a comment", + "John Doe", "john@gallery2.org", "http://gallery2.org"); module::set_var("akismet", "api_key", "TEST_KEY"); } |