[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/tests/phpunit/testcases/users/template/ -> counts.php (source)

   1  <?php
   2  
   3  /**
   4   * Tests for the user component count template functions.
   5   *
   6   * @group users
   7   * @group template
   8   * @group counts
   9   */
  10  class BBP_Tests_Users_Template_Counts extends BBP_UnitTestCase {
  11  
  12      /**
  13       * @covers ::bbp_user_id
  14       * @covers ::bbp_get_user_id
  15       */
  16  	public function test_bbp_get_user_id() {
  17          $u = $this->factory->user->create();
  18  
  19          $user_id = bbp_get_user_id( $u );
  20          $this->assertSame( $u, $user_id );
  21      }
  22  }


Generated: Mon Feb 17 01:01:36 2020 Cross-referenced by PHPXref 0.7.1