diff --git a/tests/CommentAdminTest.php b/tests/CommentAdminTest.php new file mode 100644 index 00000000..c86ea1b7 --- /dev/null +++ b/tests/CommentAdminTest.php @@ -0,0 +1,36 @@ +NumModerated(); + $this->assertEquals(1, $resp); + } + + function testNumUnmoderated(){ + + $comm = new CommentAdmin(); + $resp = $comm->NumUnmoderated(); + $this->assertEquals(1, $resp); + } + + function testNumSpam(){ + + $comm = new CommentAdmin(); + $resp = $comm->NumSpam(); + $this->assertEquals(0, $resp); + } + + function testacceptmarked(){ + $id = $this->idFromFixture('PageComment', 'Comment1'); + $this->logInWithPermssion('ADMIN'); + $result = $this->get('admin/comments/EditForm/field/Comments/item/2/delete'); + $this->assertEquals(200, $result->getStatusCode()); + } + +} +?> \ No newline at end of file