From 36fb1b66ed2cda40f250dc6e2609ea190f101473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 3 Dec 2013 18:29:28 +0100 Subject: [PATCH] Another test --- test/bookTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/bookTest.php b/test/bookTest.php index 410e229..faf8b86 100644 --- a/test/bookTest.php +++ b/test/bookTest.php @@ -167,6 +167,16 @@ class BookTest extends PHPUnit_Framework_TestCase $this->assertEquals ("EPUB", $data->format); } + public function testGetDataById () + { + // Get Alice MOBI=>17, PDF=>19, EPUB=>20 + $book = Book::getBookById(17); + $data = $book->getDataById (17); + $this->assertEquals ("MOBI", $data->format); + $data = $book->getDataById (20); + $this->assertEquals ("EPUB", $data->format); + } + public function testTypeaheadSearch () { $_GET["query"] = "fic";