Remove trailing spaces
This commit is contained in:
parent
9f5f00e114
commit
0f09ef5f8c
21 changed files with 478 additions and 478 deletions
|
@ -10,7 +10,7 @@ require_once (dirname(__FILE__) . "/config_test.php");
|
|||
require_once (dirname(__FILE__) . "/../book.php");
|
||||
|
||||
class PageMultiDatabaseTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
{
|
||||
public function testPageIndex ()
|
||||
{
|
||||
global $config;
|
||||
|
@ -20,10 +20,10 @@ class PageMultiDatabaseTest extends PHPUnit_Framework_TestCase
|
|||
$query = NULL;
|
||||
$qid = NULL;
|
||||
$n = "1";
|
||||
|
||||
|
||||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||
$currentPage->InitializeContent ();
|
||||
|
||||
|
||||
$this->assertEquals ($config['cops_title_default'], $currentPage->title);
|
||||
$this->assertCount (2, $currentPage->entryArray);
|
||||
$this->assertEquals ("Some books", $currentPage->entryArray [0]->title);
|
||||
|
@ -32,7 +32,7 @@ class PageMultiDatabaseTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals ("1 book", $currentPage->entryArray [1]->content);
|
||||
$this->assertFalse ($currentPage->ContainsBook ());
|
||||
}
|
||||
|
||||
|
||||
public function testPageSearchXXX ()
|
||||
{
|
||||
global $config;
|
||||
|
@ -42,10 +42,10 @@ class PageMultiDatabaseTest extends PHPUnit_Framework_TestCase
|
|||
$query = "art";
|
||||
$qid = NULL;
|
||||
$n = "1";
|
||||
|
||||
|
||||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||
$currentPage->InitializeContent ();
|
||||
|
||||
|
||||
$this->assertEquals ("Search result for *art*", $currentPage->title);
|
||||
$this->assertCount (2, $currentPage->entryArray);
|
||||
$this->assertEquals ("Some books", $currentPage->entryArray [0]->title);
|
||||
|
@ -54,7 +54,7 @@ class PageMultiDatabaseTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals ("1 book", $currentPage->entryArray [1]->content);
|
||||
$this->assertFalse ($currentPage->ContainsBook ());
|
||||
}
|
||||
|
||||
|
||||
public static function tearDownAfterClass () {
|
||||
Base::clearDb ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue