From dd0e69ba3aa9ab1521c104920d842a7226b67699 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 23 Apr 2009 01:32:35 +0000 Subject: Delete any comments associated with deleted items --- modules/comment/tests/Comment_Event_Test.php | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/comment/tests/Comment_Event_Test.php (limited to 'modules/comment/tests') diff --git a/modules/comment/tests/Comment_Event_Test.php b/modules/comment/tests/Comment_Event_Test.php new file mode 100644 index 00000000..1cdbd834 --- /dev/null +++ b/modules/comment/tests/Comment_Event_Test.php @@ -0,0 +1,33 @@ +delete(); + + $deleted_comment = ORM::factory("comment", $comment->id); + $this->assert_false($deleted_comment->loaded); + } +} -- cgit v1.2.3