[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/tests/phpunit/testcases/core/ -> filters.php (source)

   1  <?php
   2  
   3  /**
   4   * @group core
   5   */
   6  
   7  class BP_Tests_Core_Filters extends BP_UnitTestCase {
   8      /**
   9       * @group bp_core_components_subdirectory_reserved_names
  10       * @ticket 8187
  11       */
  12      public function test_bp_core_components_subdirectory_reserved_names() {
  13          if ( ! is_multisite() || is_subdomain_install() ) {
  14              $this->markTestSkipped();
  15          }
  16  
  17          $u = self::factory()->user->create();
  18  
  19          $site_data = wpmu_validate_blog_signup( 'members', 'Members', $u );
  20  
  21          $this->assertTrue( is_wp_error( $site_data['errors'] ), 'On MS subdomain installs, a new site should not be able to use a component slug' );
  22      }
  23  }


Generated: Thu May 2 01:01:02 2024 Cross-referenced by PHPXref 0.7.1