Skip to:
Content

BuddyPress.org

Changeset 12245


Ignore:
Timestamp:
10/05/2018 04:44:54 PM (6 years ago)
Author:
boonebgorges
Message:

Tests: More targeted 'wpmu_new_blog' deprecation notices.

When a test could run under non-MS, the expectedDeprecated annotation
cannot apply to the entire test.

See #7984.

Location:
trunk/tests/phpunit/testcases
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/activity/functions.php

    r12244 r12245  
    10531053     * @group bp_activity_format_activity_action_custom_post_type_post_ms
    10541054     * @group post_type_comment_activities
    1055      * @expectedDeprecated wpmu_new_blog
    10561055     */
    10571056    public function test_bp_activity_format_activity_action_custom_post_type_comment() {
    10581057        if ( is_multisite() ) {
     1058            $this->setExpectedDeprecated( 'wpmu_new_blog' );
    10591059            $b = self::factory()->blog->create();
    10601060            switch_to_blog( $b );
  • trunk/tests/phpunit/testcases/blogs/functions.php

    r12244 r12245  
    734734        if ( ! is_multisite() ) {
    735735            $this->markTestSkipped();
    736             return;
    737736        }
    738737
     
    886885     * @group bp_blogs_comment_sync_activity_comment
    887886     * @group post_type_comment_activities
    888      * @expectedDeprecated wpmu_new_blog
    889887     */
    890888    public function test_bp_blogs_comment_sync_activity_comment_for_custom_post_type() {
    891889        if ( is_multisite() ) {
     890            $this->setExpectedDeprecated( 'wpmu_new_blog' );
    892891            $b = self::factory()->blog->create();
    893892            switch_to_blog( $b );
  • trunk/tests/phpunit/testcases/core/functions.php

    r12243 r12245  
    696696     * @group bp_attachments
    697697     * @group bp_upload_dir
    698      * @expectedDeprecated wpmu_new_blog
    699698     */
    700699    public function test_bp_upload_dir() {
     
    702701
    703702        if ( is_multisite() ) {
     703            $this->setExpectedDeprecated( 'wpmu_new_blog' );
    704704            $b = self::factory()->blog->create();
    705705            switch_to_blog( $b );
  • trunk/tests/phpunit/testcases/members/functions.php

    r12244 r12245  
    496496    /**
    497497     * @group bp_core_activate_signup
    498      * @expectedDeprecated wpmu_new_blog
    499498     */
    500499    public function test_bp_core_activate_signup_password() {
     
    517516
    518517        if ( is_multisite() ) {
     518            $this->setExpectedDeprecated( 'wpmu_new_blog' );
     519
    519520            $signups['ms-blog'] = array( 'signup_id' => self::factory()->signup->create( array(
    520521                    'user_login'     => 'msblog',
  • trunk/tests/phpunit/testcases/routing/url.php

    r12243 r12245  
    44 */
    55class BP_Tests_URL extends BP_UnitTestCase {
    6     /**
    7      * @expectedDeprecated wpmu_new_blog
    8      */
    96    function test_bp_core_ajax_url() {
    107        $forced = force_ssl_admin();
     
    4542        // (3) Multisite, root blog other than 1
    4643        if ( is_multisite() ) {
     44            $this->setExpectedDeprecated( 'wpmu_new_blog' );
     45
    4746            $original_root_blog = bp_get_root_blog_id();
    4847            $blog_id = self::factory()->blog->create( array(
Note: See TracChangeset for help on using the changeset viewer.