From 15c3ae99473579a68643475d746efb63a73cfed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Mon, 16 Dec 2013 21:41:34 +0100 Subject: [PATCH] Fix the tests. re #34 --- test/bookTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/bookTest.php b/test/bookTest.php index 29bd02f..ba52a9f 100644 --- a/test/bookTest.php +++ b/test/bookTest.php @@ -352,11 +352,12 @@ class BookTest extends PHPUnit_Framework_TestCase $array = getJson (); - $this->assertCount (4, $array); + $this->assertCount (5, $array); $this->assertEquals ("Some books", $array[0]["title"]); - $this->assertEquals ("No book", $array[1]["title"]); - $this->assertEquals ("One book", $array[2]["title"]); - $this->assertEquals ("1 book", $array[3]["title"]); + $this->assertEquals ("1 author", $array[1]["title"]); + $this->assertEquals ("1 series", $array[2]["title"]); + $this->assertEquals ("One book", $array[3]["title"]); + $this->assertEquals ("1 book", $array[4]["title"]); $_GET["query"] = NULL; $_GET["search"] = NULL;