Permalink
Browse files

test for #250

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
1 parent b08aba8 commit 38e128b597f1a6c30416e08a08095fb0941365bc @evilbloodydemon evilbloodydemon committed with markstory Sep 29, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 cake/tests/cases/libs/model/model_delete.test.php
@@ -736,4 +736,15 @@ function testBeforeDeleteWipingTable() {
$this->assertTrue($result > 1, 'Comments are all gone.');
}
+
+ function testBeforeDeleteWipingTable2() {
+ $this->loadFixtures('Comment');
+
+ $Comment =& new BeforeDeleteComment();
+ $Comment->delete(1);
+
+ $result = $Comment->find('count');
+
+ $this->assertTrue($result > 1, 'Comments are all gone.');
+ }
}

0 comments on commit 38e128b

Please sign in to comment.