Test GetBookByDataId.

This commit is contained in:
Sébastien Lucas 2013-12-03 18:35:48 +01:00
parent 888c814af4
commit 745036d262

View file

@ -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