Another test

This commit is contained in:
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"]);
}
}