do_action('bbp_template_before_user_profile'); ?> <div id="bbp-user-profile" class="bbp-user-profile"> <div class="bbp-user-section"> <table class="bbp-user-profile-details"> <tr class="bbp-user-forum-role"> <td> <?php _e('Role', 'bbpress'); ?> </td> <td> <?php bbp_user_display_role(); ?> </td> </tr> <tr class="bbp-user-topic-count"> <td> <?php _e('Topics', 'bbpress'); ?> </td> <td> <?php echo bbp_get_user_topic_count_raw(); ?> </td> </tr>
?> <div class="arreat-reply-form"> <div class="arreat-reply-form-left"> <?php bbp_current_user_avatar(); ?> <div class="arreat-reply-form-name"> <?php bbp_user_profile_link(bbp_get_current_user_id()); ?> </div> <div class="arreat-reply-form-role"> <?php bbp_user_display_role(bbp_get_current_user_id()); ?> </div> </div> <div class="arreat-reply-form-right"> <?php bbp_get_template_part('form', 'anonymous'); ?> <?php do_action('bbp_theme_before_topic_form_title'); ?> <p> <input type="text" id="bbp_topic_title" class="arreat-topic-title-input" value="<?php
/** * @covers ::bbp_user_display_role * @covers ::bbp_get_user_display_role */ public function test_bbp_get_user_display_role() { $display_role = 'Keymaster'; // String. $this->assertSame($display_role, bbp_get_user_display_role($this->keymaster_id)); // Output. $this->expectOutputString($display_role); bbp_user_display_role($this->keymaster_id); }