Again more test functions.
This commit is contained in:
부모
8d18f19e44
커밋
88ff8f5409
1개의 변경된 파일과 16개의 추가작업 그리고 1개의 파일을 삭제
|
@ -266,15 +266,30 @@ class BookTest extends PHPUnit_Framework_TestCase
|
|||
);
|
||||
}
|
||||
|
||||
public function testGetMostInterestingDataToSendToKindle ()
|
||||
public function testGetMostInterestingDataToSendToKindle_WithMOBI ()
|
||||
{
|
||||
// Get Alice (available as MOBI, PDF, EPUB in that order)
|
||||
$book = Book::getBookById(17);
|
||||
$data = $book->GetMostInterestingDataToSendToKindle ();
|
||||
$this->assertEquals ("MOBI", $data->format);
|
||||
}
|
||||
|
||||
public function testGetMostInterestingDataToSendToKindle_WithPdf ()
|
||||
{
|
||||
// Get Alice (available as MOBI, PDF, EPUB in that order)
|
||||
$book = Book::getBookById(17);
|
||||
$data = $book->GetMostInterestingDataToSendToKindle ();
|
||||
array_shift ($book->datas);
|
||||
$data = $book->GetMostInterestingDataToSendToKindle ();
|
||||
$this->assertEquals ("PDF", $data->format);
|
||||
}
|
||||
|
||||
public function testGetMostInterestingDataToSendToKindle_WithEPUB ()
|
||||
{
|
||||
// Get Alice (available as MOBI, PDF, EPUB in that order)
|
||||
$book = Book::getBookById(17);
|
||||
$data = $book->GetMostInterestingDataToSendToKindle ();
|
||||
array_shift ($book->datas);
|
||||
array_shift ($book->datas);
|
||||
$data = $book->GetMostInterestingDataToSendToKindle ();
|
||||
$this->assertEquals ("EPUB", $data->format);
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue