From cc4f5e892f270863bc33a5c594e9300f97da2693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 14 Feb 2014 16:50:49 +0100 Subject: [PATCH] Another test --- test/jsonTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/jsonTest.php b/test/jsonTest.php index c5f31a5..740f423 100644 --- a/test/jsonTest.php +++ b/test/jsonTest.php @@ -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"]); + } } \ No newline at end of file