ratings category fixes
This commit is contained in:
parent
4b7743397b
commit
4c234a84f1
3 changed files with 16 additions and 16 deletions
|
@ -23,7 +23,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$currentPage->InitializeContent ();
|
||||
|
||||
$this->assertEquals ($config['cops_title_default'], $currentPage->title);
|
||||
$this->assertCount (7, $currentPage->entryArray);
|
||||
$this->assertCount (8, $currentPage->entryArray);
|
||||
$this->assertEquals ("Authors", $currentPage->entryArray [0]->title);
|
||||
$this->assertEquals ("Alphabetical index of the 5 authors", $currentPage->entryArray [0]->content);
|
||||
$this->assertEquals ("Series", $currentPage->entryArray [1]->title);
|
||||
|
@ -55,7 +55,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$currentPage->InitializeContent ();
|
||||
|
||||
$this->assertEquals ($config['cops_title_default'], $currentPage->title);
|
||||
$this->assertCount (2, $currentPage->entryArray);
|
||||
$this->assertCount (3, $currentPage->entryArray);
|
||||
$this->assertEquals ("All books", $currentPage->entryArray [0]->title);
|
||||
$this->assertEquals ("Alphabetical index of the 14 books", $currentPage->entryArray [0]->content);
|
||||
$this->assertEquals ("Recent additions", $currentPage->entryArray [1]->title);
|
||||
|
@ -77,7 +77,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||
$currentPage->InitializeContent ();
|
||||
|
||||
$this->assertCount (8, $currentPage->entryArray);
|
||||
$this->assertCount (9, $currentPage->entryArray);
|
||||
$this->assertEquals ("Type1", $currentPage->entryArray [5]->title);
|
||||
$this->assertEquals ("Alphabetical index of the 2 tags", $currentPage->entryArray [5]->content);
|
||||
|
||||
|
@ -86,7 +86,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||
$currentPage->InitializeContent ();
|
||||
|
||||
$this->assertCount (8, $currentPage->entryArray);
|
||||
$this->assertCount (9, $currentPage->entryArray);
|
||||
$this->assertEquals ("Type2", $currentPage->entryArray [5]->title);
|
||||
$this->assertEquals ("Alphabetical index of the 3 tags", $currentPage->entryArray [5]->content);
|
||||
|
||||
|
@ -95,7 +95,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||
$currentPage->InitializeContent ();
|
||||
|
||||
$this->assertCount (8, $currentPage->entryArray);
|
||||
$this->assertCount (9, $currentPage->entryArray);
|
||||
$this->assertEquals ("Type4", $currentPage->entryArray [5]->title);
|
||||
$this->assertEquals ("Alphabetical index of the 2 tags", $currentPage->entryArray [5]->content);
|
||||
|
||||
|
@ -104,7 +104,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||
$currentPage->InitializeContent ();
|
||||
|
||||
$this->assertCount (10, $currentPage->entryArray);
|
||||
$this->assertCount (11, $currentPage->entryArray);
|
||||
|
||||
$config['cops_calibre_custom_column'] = array ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue