Merge
This commit is contained in:
commit
1f78e5ba06
|
@ -38,10 +38,8 @@ class OpdsTest extends PHPUnit_Framework_TestCase
|
||||||
global $config;
|
global $config;
|
||||||
$page = Base::PAGE_INDEX;
|
$page = Base::PAGE_INDEX;
|
||||||
$query = NULL;
|
$query = NULL;
|
||||||
$search = NULL;
|
|
||||||
$qid = NULL;
|
$qid = NULL;
|
||||||
$n = "1";
|
$n = "1";
|
||||||
$database = NULL;
|
|
||||||
|
|
||||||
$_SERVER['QUERY_STRING'] = "";
|
$_SERVER['QUERY_STRING'] = "";
|
||||||
$config['cops_subtitle_default'] = "My subtitle";
|
$config['cops_subtitle_default'] = "My subtitle";
|
||||||
|
@ -66,10 +64,8 @@ class OpdsTest extends PHPUnit_Framework_TestCase
|
||||||
"One book" => dirname(__FILE__) . "/BaseWithOneBook/");
|
"One book" => dirname(__FILE__) . "/BaseWithOneBook/");
|
||||||
$page = Base::PAGE_AUTHOR_DETAIL;
|
$page = Base::PAGE_AUTHOR_DETAIL;
|
||||||
$query = NULL;
|
$query = NULL;
|
||||||
$search = NULL;
|
|
||||||
$qid = "1";
|
$qid = "1";
|
||||||
$n = "1";
|
$n = "1";
|
||||||
$database = NULL;
|
|
||||||
$_SERVER['QUERY_STRING'] = "page=" . Base::PAGE_AUTHOR_DETAIL . "&id=1";
|
$_SERVER['QUERY_STRING'] = "page=" . Base::PAGE_AUTHOR_DETAIL . "&id=1";
|
||||||
$_GET ["db"] = "0";
|
$_GET ["db"] = "0";
|
||||||
|
|
||||||
|
@ -87,10 +83,8 @@ class OpdsTest extends PHPUnit_Framework_TestCase
|
||||||
global $config;
|
global $config;
|
||||||
$page = Base::PAGE_AUTHOR_DETAIL;
|
$page = Base::PAGE_AUTHOR_DETAIL;
|
||||||
$query = NULL;
|
$query = NULL;
|
||||||
$search = NULL;
|
|
||||||
$qid = "1";
|
$qid = "1";
|
||||||
$n = "1";
|
$n = "1";
|
||||||
$database = NULL;
|
|
||||||
$_SERVER['QUERY_STRING'] = "page=" . Base::PAGE_AUTHOR_DETAIL . "&id=1&n=1";
|
$_SERVER['QUERY_STRING'] = "page=" . Base::PAGE_AUTHOR_DETAIL . "&id=1&n=1";
|
||||||
|
|
||||||
$config['cops_max_item_per_page'] = 2;
|
$config['cops_max_item_per_page'] = 2;
|
||||||
|
|
|
@ -101,6 +101,7 @@ class BookTest extends PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
// All books by first letter
|
// All books by first letter
|
||||||
list ($entryArray, $totalNumber) = Book::getBooksByStartingLetter ("T", -1);
|
list ($entryArray, $totalNumber) = Book::getBooksByStartingLetter ("T", -1);
|
||||||
|
$this->assertEquals (-1, $totalNumber);
|
||||||
$this->assertCount (3, $entryArray);
|
$this->assertCount (3, $entryArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -308,7 +308,6 @@ class PageTest extends PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
public function testPageAllSeries ()
|
public function testPageAllSeries ()
|
||||||
{
|
{
|
||||||
global $config;
|
|
||||||
$page = Base::PAGE_ALL_SERIES;
|
$page = Base::PAGE_ALL_SERIES;
|
||||||
$query = NULL;
|
$query = NULL;
|
||||||
$qid = NULL;
|
$qid = NULL;
|
||||||
|
|
Loading…
Reference in a new issue