/** * @covers ::bbp_admin_link * @covers ::bbp_get_admin_link */ public function test_bbp_get_admin_link() { $admin_link = '<a href="http://' . WP_TESTS_DOMAIN . '/wp-admin/">Admin</a>'; $user_admin_link = bbp_get_admin_link($this->keymaster_id); // String. $this->assertSame($admin_link, $user_admin_link); // Output. $this->expectOutputString($admin_link); bbp_admin_link($this->keymaster_id); }
/** * Output the link to the admin section * * @since 2.0.0 bbPress (r2827) * * @param array $args Optional. See {@link bbp_get_admin_link()} * @uses bbp_get_admin_link() To get the admin link */ function bbp_admin_link($args = array()) { echo bbp_get_admin_link($args); }
/** * Output the link to the admin section * * @since bbPress (r2827) * * @param mixed $args Optional. See {@link bbp_get_admin_link()} * @uses bbp_get_admin_link() To get the admin link */ function bbp_admin_link($args = '') { echo bbp_get_admin_link($args); }