Another test

这个提交包含在:
Sébastien Lucas 2014-02-14 16:50:49 +01:00
父节点 6213a0e499
当前提交 cc4f5e892f
共有 1 个文件被更改,包括 10 次插入0 次删除

查看文件

@ -60,4 +60,14 @@ class JsonTest extends PHPUnit_Framework_TestCase
$this->assertEquals ("Book 6.0 in the Sherlock Holmes series", $test ["seriesCompleteName"]);
$this->assertStringEndsWith ("?page=7&id=1", $test ["seriesurl"]);
}
public function testGetFullBookContentArray () {
$book = Book::getBookById(17);
$test = JSONRenderer::getFullBookContentArray($book);
$this->assertCount (1, $test ["authors"]);
$this->assertCount (3, $test ["tags"]);
$this->assertCount (3, $test ["datas"]);
}
}