[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/tests/phpunit/testcases/replies/template/ -> authors.php (source)

   1  <?php
   2  
   3  /**
   4   * Tests for the `bbp_*_form_reply_author_*()` template functions.
   5   *
   6   * @group replies
   7   * @group template
   8   * @group authors
   9   */
  10  class BBP_Tests_Replies_Template_Authors extends BBP_UnitTestCase {
  11  
  12      /**
  13       * @covers ::bbp_reply_author
  14       * @covers ::bbp_get_reply_author
  15       * @todo   Implement test_bbp_get_reply_author().
  16       */
  17  	public function test_bbp_get_reply_author() {
  18          // Remove the following lines when you implement this test.
  19          $this->markTestIncomplete(
  20              'This test has not been implemented yet.'
  21          );
  22      }
  23  
  24      /**
  25       * @covers ::bbp_reply_author_id
  26       * @covers ::bbp_get_reply_author_id
  27       */
  28  	public function test_bbp_get_reply_author_id() {
  29          $u = $this->factory->user->create();
  30          $t = $this->factory->topic->create();
  31          $r = $this->factory->reply->create( array(
  32              'post_parent' => $t,
  33              'post_author' => $u,
  34              'reply_meta' => array(
  35                  'topic_id' => $t,
  36              ),
  37          ) );
  38  
  39          $reply = bbp_get_reply_author_id( $r );
  40          $this->assertSame( $u, $reply );
  41      }
  42  
  43      /**
  44       * @covers ::bbp_reply_author_display_name
  45       * @covers ::bbp_get_reply_author_display_name
  46       */
  47  	public function test_bbp_get_reply_author_display_name() {
  48          $u = $this->factory->user->create( array(
  49              'display_name' => 'Barry B. Benson',
  50          ) );
  51          $t = $this->factory->topic->create();
  52          $r = $this->factory->reply->create( array(
  53              'post_parent' => $t,
  54              'post_author' => $u,
  55              'reply_meta' => array(
  56                  'topic_id' => $t,
  57              ),
  58          ) );
  59  
  60          $reply = bbp_get_reply_author_display_name( $r );
  61          $this->assertSame( 'Barry B. Benson', $reply );
  62      }
  63  
  64      /**
  65       * @covers ::bbp_reply_author_avatar
  66       * @covers ::bbp_get_reply_author_avatar
  67       * @todo   Implement test_bbp_get_reply_author_avatar().
  68       */
  69  	public function test_bbp_get_reply_author_avatar() {
  70          // Remove the following lines when you implement this test.
  71          $this->markTestIncomplete(
  72              'This test has not been implemented yet.'
  73          );
  74      }
  75  
  76      /**
  77       * @covers ::bbp_reply_author_link
  78       * @covers ::bbp_get_reply_author_link
  79       * @todo   Implement test_bbp_get_reply_author_link().
  80       */
  81  	public function test_bbp_get_reply_author_link() {
  82          // Remove the following lines when you implement this test.
  83          $this->markTestIncomplete(
  84              'This test has not been implemented yet.'
  85          );
  86      }
  87  
  88      /**
  89       * @covers ::bbp_reply_author_url
  90       * @covers ::bbp_get_reply_author_url
  91       * @todo   Implement test_bbp_get_reply_author_url().
  92       */
  93  	public function test_bbp_get_reply_author_url() {
  94          // Remove the following lines when you implement this test.
  95          $this->markTestIncomplete(
  96              'This test has not been implemented yet.'
  97          );
  98      }
  99  
 100      /**
 101       * @covers ::bbp_reply_author_email
 102       * @covers ::bbp_get_reply_author_email
 103       * @todo   Implement test_bbp_get_reply_author_email().
 104       */
 105  	public function test_bbp_get_reply_author_email() {
 106          // Remove the following lines when you implement this test.
 107          $this->markTestIncomplete(
 108              'This test has not been implemented yet.'
 109          );
 110      }
 111  
 112      /**
 113       * @covers ::bbp_reply_author_role
 114       * @covers ::bbp_get_reply_author_role
 115       * @todo   Implement test_bbp_get_reply_author_role().
 116       */
 117  	public function test_bbp_get_reply_author_role() {
 118          // Remove the following lines when you implement this test.
 119          $this->markTestIncomplete(
 120              'This test has not been implemented yet.'
 121          );
 122      }
 123  }


Generated: Wed Jul 15 01:01:28 2020 Cross-referenced by PHPXref 0.7.1