Test GetBookByDataId.
This commit is contained in:
parent
888c814af4
commit
745036d262
|
@ -122,6 +122,13 @@ class BookTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertCount (3, $entryArray);
|
$this->assertCount (3, $entryArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testGetBookByDataId ()
|
||||||
|
{
|
||||||
|
$book = Book::getBookByDataId (17);
|
||||||
|
|
||||||
|
$this->assertEquals ("Alice's Adventures in Wonderland", $book->getTitle ());
|
||||||
|
}
|
||||||
|
|
||||||
public function testGetAllRecentBooks ()
|
public function testGetAllRecentBooks ()
|
||||||
{
|
{
|
||||||
// All recent books
|
// All recent books
|
||||||
|
|
Loading…
Reference in a new issue