New test for At Libitum's modifications. re #96
This commit is contained in:
parent
16bfd93032
commit
020e440faf
|
@ -286,6 +286,19 @@ class PageTest extends PHPUnit_Framework_TestCase
|
||||||
$n = "1";
|
$n = "1";
|
||||||
$database = NULL;
|
$database = NULL;
|
||||||
|
|
||||||
|
$config['cops_titles_split_first_letter'] = 0;
|
||||||
|
|
||||||
|
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||||
|
$currentPage->InitializeContent ();
|
||||||
|
|
||||||
|
$this->assertEquals ("All books", $currentPage->title);
|
||||||
|
$this->assertCount (14, $currentPage->entryArray);
|
||||||
|
$this->assertEquals ("The Adventures of Sherlock Holmes", $currentPage->entryArray [0]->title);
|
||||||
|
$this->assertEquals ("Alice's Adventures in Wonderland", $currentPage->entryArray [1]->title);
|
||||||
|
$this->assertTrue ($currentPage->ContainsBook ());
|
||||||
|
|
||||||
|
$config['cops_titles_split_first_letter'] = 1;
|
||||||
|
|
||||||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||||
$currentPage->InitializeContent ();
|
$currentPage->InitializeContent ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue