New tests again for custom columns. re #96
这个提交存在于:
父节点
ccd0e0b1a9
当前提交
aca14938ca
共有 1 个文件被更改,包括 20 次插入 和 0 次删除
|
|
@ -145,6 +145,26 @@ class PageTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals ("Alice's Adventures in Wonderland", $currentPage->entryArray [0]->title);
|
||||
$this->assertTrue ($currentPage->ContainsBook ());
|
||||
|
||||
$_GET ["custom"] = "2";
|
||||
|
||||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||
$currentPage->InitializeContent ();
|
||||
|
||||
$this->assertEquals ("tag1", $currentPage->title);
|
||||
$this->assertCount (2, $currentPage->entryArray);
|
||||
$this->assertEquals ("Alice's Adventures in Wonderland", $currentPage->entryArray [0]->title);
|
||||
$this->assertTrue ($currentPage->ContainsBook ());
|
||||
|
||||
$_GET ["custom"] = "3";
|
||||
$qid = "2";
|
||||
|
||||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||
$currentPage->InitializeContent ();
|
||||
|
||||
$this->assertEquals ("other", $currentPage->title);
|
||||
$this->assertCount (1, $currentPage->entryArray);
|
||||
$this->assertEquals ("A Study in Scarlet", $currentPage->entryArray [0]->title);
|
||||
$this->assertTrue ($currentPage->ContainsBook ());
|
||||
|
||||
$_GET ["custom"] = NULL;
|
||||
}
|
||||
|
|
|
|||
正在加载…
添加表格
添加链接
在新工单中引用