2010-12-11 06:33:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @package comments
|
|
|
|
*/
|
|
|
|
|
|
|
|
class CommentAdminTest extends FunctionalTest {
|
|
|
|
|
|
|
|
static $fixture_file = 'comments/tests/CommentsTest.yml';
|
|
|
|
|
|
|
|
function testNumModerated() {
|
|
|
|
$comm = new CommentAdmin();
|
|
|
|
$resp = $comm->NumModerated();
|
|
|
|
$this->assertEquals(4, $resp);
|
|
|
|
}
|
|
|
|
|
|
|
|
function testNumUnmoderated(){
|
|
|
|
$comm = new CommentAdmin();
|
|
|
|
$resp = $comm->NumUnmoderated();
|
|
|
|
$this->assertEquals(3, $resp);
|
|
|
|
}
|
|
|
|
|
|
|
|
function testNumSpam(){
|
|
|
|
$comm = new CommentAdmin();
|
|
|
|
$resp = $comm->NumSpam();
|
|
|
|
$this->assertEquals(2, $resp);
|
|
|
|
}
|
|
|
|
|
|
|
|
function testdeletemarked(){
|
2012-06-01 23:34:35 +02:00
|
|
|
$this->markTestIncomplete("TODO");
|
2010-12-11 06:33:21 +01:00
|
|
|
}
|
|
|
|
}
|