[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * Tests for the `bbp_*_form_topic_author_*()` template functions.
   5   *
   6   * @group topics
   7   * @group template
   8   * @group authors
   9   */
  10  class BBP_Tests_Topics_Template_Authors extends BBP_UnitTestCase {
  11  
  12      /**
  13       * @covers ::bbp_topic_author
  14       * @covers ::bbp_get_topic_author
  15       * @todo   Implement test_bbp_get_topic_author().
  16       */
  17  	public function test_bbp_get_topic_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_topic_author_id
  26       * @covers ::bbp_get_topic_author_id
  27       */
  28  	public function test_bbp_get_topic_author_id() {
  29          $u = $this->factory->user->create();
  30          $t = $this->factory->topic->create( array(
  31              'post_author' => $u,
  32          ) );
  33  
  34          $topic = bbp_get_topic_author_id( $t );
  35          $this->assertSame( $u, $topic );
  36      }
  37  
  38      /**
  39       * @covers ::bbp_topic_author_display_name
  40       * @covers ::bbp_get_topic_author_display_name
  41       */
  42  	public function test_bbp_get_topic_author_display_name() {
  43          $u = $this->factory->user->create( array(
  44              'display_name' => 'Barry B. Benson',
  45          ) );
  46  
  47          $t = $this->factory->topic->create( array(
  48              'post_author' => $u,
  49          ) );
  50  
  51          $topic = bbp_get_topic_author_display_name( $t );
  52          $this->assertSame( 'Barry B. Benson', $topic );
  53      }
  54  
  55      /**
  56       * @covers ::bbp_topic_author_avatar
  57       * @covers ::bbp_get_topic_author_avatar
  58       * @todo   Implement test_bbp_get_topic_author_avatar().
  59       */
  60  	public function test_bbp_get_topic_author_avatar() {
  61          // Remove the following lines when you implement this test.
  62          $this->markTestIncomplete(
  63              'This test has not been implemented yet.'
  64          );
  65      }
  66  
  67      /**
  68       * @covers ::bbp_topic_author_link
  69       * @covers ::bbp_get_topic_author_link
  70       * @todo   Implement test_bbp_get_topic_author_link().
  71       */
  72  	public function test_bbp_get_topic_author_link() {
  73          // Remove the following lines when you implement this test.
  74          $this->markTestIncomplete(
  75              'This test has not been implemented yet.'
  76          );
  77      }
  78  
  79      /**
  80       * @covers ::bbp_topic_author_url
  81       * @covers ::bbp_get_topic_author_url
  82       * @todo   Implement test_bbp_get_topic_author_url().
  83       */
  84  	public function test_bbp_get_topic_author_url() {
  85          // Remove the following lines when you implement this test.
  86          $this->markTestIncomplete(
  87              'This test has not been implemented yet.'
  88          );
  89      }
  90  
  91      /**
  92       * @covers ::bbp_topic_author_email
  93       * @covers ::bbp_get_topic_author_email
  94       * @todo   Implement test_bbp_get_topic_author_email().
  95       */
  96  	public function test_bbp_get_topic_author_email() {
  97          // Remove the following lines when you implement this test.
  98          $this->markTestIncomplete(
  99              'This test has not been implemented yet.'
 100          );
 101      }
 102  
 103      /**
 104       * @covers ::bbp_topic_author_role
 105       * @covers ::bbp_get_topic_author_role
 106       * @todo   Implement test_bbp_get_topic_author_role().
 107       */
 108  	public function test_bbp_get_topic_author_role() {
 109          // Remove the following lines when you implement this test.
 110          $this->markTestIncomplete(
 111              'This test has not been implemented yet.'
 112          );
 113      }
 114  }


Generated: Sat Dec 21 01:00:52 2024 Cross-referenced by PHPXref 0.7.1