This commit is contained in:
Sébastien Lucas 2014-06-04 21:37:32 +02:00
rodič d38486cd09
revize e38ac8ea65
1 změnil soubory, kde provedl 7 přidání a 0 odebrání

Zobrazit soubor

@ -191,6 +191,13 @@ class BookTest extends PHPUnit_Framework_TestCase
$this->assertEquals ("Strand Magazine", $book->getPublisher()->name);
}
public function testGetBookById_NotFound ()
{
$book = Book::getBookById(666);
$this->assertNull ($book);
}
public function testGetRating_FiveStars ()
{
$book = Book::getBookById(2);