Exemplo n.º 1
0
/**
 * Output a fancy description of the current forum, including total topics,
 * total replies, and last activity.
 *
 * @since bbPress (r2860)
 *
 * @param array $args Arguments passed to alter output
 * @uses bbp_get_single_forum_description() Return the eventual output
 */
function bbp_single_forum_description($args = '')
{
    echo bbp_get_single_forum_description($args);
}
Exemplo n.º 2
0
 /**
  * @covers ::bbp_single_forum_description
  * @covers ::bbp_get_single_forum_description
  */
 public function test_bbp_get_single_forum_description()
 {
     $f = $this->factory->forum->create();
     $forum = bbp_get_single_forum_description($f);
     $this->assertSame('<div class="bbp-template-notice info"><ul><li class="bbp-forum-description">This forum is empty.</li></ul></div>', $forum);
 }