New tests.
This commit is contained in:
부모
d38486cd09
커밋
e38ac8ea65
1개의 변경된 파일과 7개의 추가작업 그리고 0개의 파일을 삭제
|
@ -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);
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue