New tests.
Este commit está contenido en:
padre
d38486cd09
commit
e38ac8ea65
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
|
@ -191,6 +191,13 @@ class BookTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals ("Strand Magazine", $book->getPublisher()->name);
|
$this->assertEquals ("Strand Magazine", $book->getPublisher()->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testGetBookById_NotFound ()
|
||||||
|
{
|
||||||
|
$book = Book::getBookById(666);
|
||||||
|
|
||||||
|
$this->assertNull ($book);
|
||||||
|
}
|
||||||
|
|
||||||
public function testGetRating_FiveStars ()
|
public function testGetRating_FiveStars ()
|
||||||
{
|
{
|
||||||
$book = Book::getBookById(2);
|
$book = Book::getBookById(2);
|
||||||
|
|
Cargando…
Añadir tabla
Añadir enlace
Referenciar en una nueva incidencia