Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test for #250

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
commit 38e128b597f1a6c30416e08a08095fb0941365bc 1 parent b08aba8
@evilbloodydemon evilbloodydemon authored markstory committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 cake/tests/cases/libs/model/model_delete.test.php
View
11 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.');
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.