From d45bbb7ff611d007241f7ead71ab05594452c4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Wed, 30 Apr 2014 14:26:25 +0200 Subject: [PATCH] more test functions --- test/pageTest.php | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/test/pageTest.php b/test/pageTest.php index 1638a8f..a7d3803 100644 --- a/test/pageTest.php +++ b/test/pageTest.php @@ -193,7 +193,7 @@ class PageTest extends PHPUnit_Framework_TestCase $_GET ["custom"] = NULL; } - public function testPageAllAuthors () + public function testPageAllAuthors_WithFullName () { global $config; $page = Base::PAGE_ALL_AUTHORS; @@ -212,6 +212,15 @@ class PageTest extends PHPUnit_Framework_TestCase $this->assertFalse ($currentPage->ContainsBook ()); $config['cops_author_split_first_letter'] = "1"; + } + + public function testPageAllAuthors_SplittedByFirstLetter () + { + global $config; + $page = Base::PAGE_ALL_AUTHORS; + $query = NULL; + $qid = NULL; + $n = "1"; $currentPage = Page::getPage ($page, $qid, $query, $n); $currentPage->InitializeContent (); @@ -287,7 +296,7 @@ class PageTest extends PHPUnit_Framework_TestCase $this->assertFalse ($currentPage->IsPaginated ()); } - public function testPageAllBooks () + public function testPageAllBooks_WithFullName () { global $config; $page = Base::PAGE_ALL_BOOKS; @@ -307,6 +316,15 @@ class PageTest extends PHPUnit_Framework_TestCase $this->assertTrue ($currentPage->ContainsBook ()); $config['cops_titles_split_first_letter'] = 1; + } + + public function testPageAllBooks_SplittedByFirstLetter () + { + global $config; + $page = Base::PAGE_ALL_BOOKS; + $query = NULL; + $qid = NULL; + $n = "1"; $currentPage = Page::getPage ($page, $qid, $query, $n); $currentPage->InitializeContent ();