fix related posts test
This commit is contained in:
parent
c5500420e9
commit
e8800de4fd
|
@ -11,7 +11,6 @@ class ComicPressRelatedPostsTest extends PHPUnit_Framework_TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
function testBuildPostTable() {
|
function testBuildPostTable() {
|
||||||
$this->markTestIncomplete();
|
|
||||||
$posts = array(
|
$posts = array(
|
||||||
(object)array('ID' => 1, 'post_date' => '2009-01-01', 'post_title' => 'Post 1', 'guid' => 'post-1'),
|
(object)array('ID' => 1, 'post_date' => '2009-01-01', 'post_title' => 'Post 1', 'guid' => 'post-1'),
|
||||||
(object)array('ID' => 2, 'post_date' => '2009-01-02', 'post_title' => 'Post 2', 'guid' => 'post-2'),
|
(object)array('ID' => 2, 'post_date' => '2009-01-02', 'post_title' => 'Post 2', 'guid' => 'post-2'),
|
||||||
|
@ -32,7 +31,7 @@ class ComicPressRelatedPostsTest extends PHPUnit_Framework_TestCase {
|
||||||
wp_set_post_categories($id, $cats);
|
wp_set_post_categories($id, $cats);
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = '<div class="related_posts"><span>Title</span><table class="month-table"><tr><td class="archive-date" align="right">Jan 3, 2009</td><td class="archive-title"><a title="Post 3" href="post-3">Post 3</a></td></tr></table></div>';
|
$output = '<div class="related_posts"><h4>Title</h4><ul><li><a title="Post 3" href="post-3">Post 3</a></li></ul></div>';
|
||||||
|
|
||||||
$this->rp->related_categories = array(2);
|
$this->rp->related_categories = array(2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue