Fix number of elements in authors lists. re #79
This commit is contained in:
parent
734946e826
commit
86999dd3ec
2 changed files with 6 additions and 2 deletions
|
@ -91,6 +91,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertCount (9, $currentPage->entryArray);
|
||||
$this->assertEquals ("Type1", $currentPage->entryArray [6]->title);
|
||||
$this->assertEquals ("Alphabetical index of the 2 tags", $currentPage->entryArray [6]->content);
|
||||
$this->assertEquals (2, $currentPage->entryArray [6]->numberOfElement);
|
||||
|
||||
$config['cops_calibre_custom_column'] = array ("type2");
|
||||
|
||||
|
@ -100,6 +101,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertCount (9, $currentPage->entryArray);
|
||||
$this->assertEquals ("Type2", $currentPage->entryArray [6]->title);
|
||||
$this->assertEquals ("Alphabetical index of the 3 tags", $currentPage->entryArray [6]->content);
|
||||
$this->assertEquals (3, $currentPage->entryArray [6]->numberOfElement);
|
||||
|
||||
$config['cops_calibre_custom_column'] = array ("type4");
|
||||
|
||||
|
@ -109,6 +111,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertCount (9, $currentPage->entryArray);
|
||||
$this->assertEquals ("Type4", $currentPage->entryArray [6]->title);
|
||||
$this->assertEquals ("Alphabetical index of the 2 tags", $currentPage->entryArray [6]->content);
|
||||
$this->assertEquals (2, $currentPage->entryArray [6]->numberOfElement);
|
||||
|
||||
$config['cops_calibre_custom_column'] = array ("type1", "type2", "type4");
|
||||
|
||||
|
@ -236,6 +239,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals ("Authors", $currentPage->title);
|
||||
$this->assertCount (5, $currentPage->entryArray);
|
||||
$this->assertEquals ("C", $currentPage->entryArray [0]->title);
|
||||
$this->assertEquals (1, $currentPage->entryArray [0]->numberOfElement);
|
||||
$this->assertFalse ($currentPage->ContainsBook ());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue