From 745036d262812a06f0ce03d480b245a8bd5d7bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 3 Dec 2013 18:35:48 +0100 Subject: [PATCH] Test GetBookByDataId. --- test/bookTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/bookTest.php b/test/bookTest.php index 5c06e69..b09ac70 100644 --- a/test/bookTest.php +++ b/test/bookTest.php @@ -122,6 +122,13 @@ class BookTest extends PHPUnit_Framework_TestCase $this->assertCount (3, $entryArray); } + public function testGetBookByDataId () + { + $book = Book::getBookByDataId (17); + + $this->assertEquals ("Alice's Adventures in Wonderland", $book->getTitle ()); + } + public function testGetAllRecentBooks () { // All recent books