Skip to:
Content

BuddyPress.org

Changeset 12243


Ignore:
Timestamp:
10/05/2018 03:08:21 PM (3 years ago)
Author:
boonebgorges
Message:

Tests: Add deprecation notices for wpmu_new_blog and delete_blog hook usage.

See #7984.

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

Legend:

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

    r12154 r12243  
    805805     * @group bp_activity_format_activity_action_custom_post_type_post_ms
    806806     * @group activity_tracking
     807     * @expectedDeprecated wpmu_new_blog
    807808     */
    808809    public function test_bp_activity_format_activity_action_custom_post_type_post_ms() {
     
    917918     * @group bp_activity_format_activity_action_custom_post_type_post_ms
    918919     * @group activity_tracking
     920     * @expectedDeprecated wpmu_new_blog
    919921     */
    920922    public function test_bp_activity_format_activity_action_custom_string_post_type_post_ms() {
     
    10511053     * @group bp_activity_format_activity_action_custom_post_type_post_ms
    10521054     * @group post_type_comment_activities
     1055     * @expectedDeprecated wpmu_new_blog
    10531056     */
    10541057    public function test_bp_activity_format_activity_action_custom_post_type_comment() {
  • trunk/tests/phpunit/testcases/blogs/activity.php

    r11737 r12243  
    2424     * @group activity_action
    2525     * @group bp_blogs_format_activity_action_new_blog
     26     * @expectedDeprecated wpmu_new_blog
    2627     */
    2728    public function test_bp_blogs_format_activity_action_new_blog() {
     
    117118     * @group activity_action
    118119     * @group bp_blogs_format_activity_action_new_blog_post
     120     * @expectedDeprecated wpmu_new_blog
    119121     */
    120122    public function test_bp_blogs_format_activity_action_new_blog_post_ms_nonrootblog() {
     
    158160     * @group bp_blogs_format_activity_action_new_blog_comment
    159161     * @group post_type_comment_activities
     162     * @expectedDeprecated wpmu_new_blog
    160163     */
    161164    public function test_bp_blogs_format_activity_action_new_blog_comment_ms_nonrootblog() {
     
    201204    /**
    202205     * @group bp_blogs_format_activity_action_new_blog
     206     * @expectedDeprecated wpmu_new_blog
    203207     */
    204208    public function test_bp_activity_format_activity_action_new_blog_backpat() {
     
    229233    /**
    230234     * @group bp_blogs_format_activity_action_new_blog_post
     235     * @expectedDeprecated wpmu_new_blog
    231236     */
    232237    public function test_bp_activity_format_activity_action_new_blog_post_backpat() {
     
    257262    /**
    258263     * @group bp_blogs_format_activity_action_new_blog_comment
     264     * @expectedDeprecated wpmu_new_blog
    259265     */
    260266    public function test_bp_activity_format_activity_action_new_blog_comment_backpat() {
  • trunk/tests/phpunit/testcases/blogs/cache.php

    r12173 r12243  
    88    /**
    99     * @group bp_blogs_update_meta_cache
     10     * @expectedDeprecated wpmu_new_blog
    1011     */
    1112    public function test_bp_blogs_update_meta_cache() {
     
    8990     * @group bp_blogs_update_meta_cache
    9091     * @group bp_has_blogs
     92     * @expectedDeprecated wpmu_new_blog
    9193     */
    9294    public function test_bp_blogs_update_meta_cache_bp_has_blogs() {
     
    183185     * @group bp_blogs_update_meta_cache
    184186     * @group bp_has_blogs
     187     * @expectedDeprecated wpmu_new_blog
    185188     */
    186189    public function test_bp_blogs_update_meta_cache_bp_has_blogs_false() {
     
    258261    /**
    259262     * @group bp_blogs_total_blogs
     263     * @expectedDeprecated wpmu_new_blog
     264     * @expectedDeprecated delete_blog
    260265     */
    261266    public function test_bp_blogs_total_blogs_count_after_delete_blog() {
     
    292297    /**
    293298     * @group update_blog_details
     299     * @expectedDeprecated wpmu_new_blog
    294300     */
    295301    public function test_update_blog_details_should_purge_blogmeta_cache() {
  • trunk/tests/phpunit/testcases/blogs/class-bp-blogs-blog.php

    r11737 r12243  
    66 */
    77class BP_Tests_BP_Blogs_Blog_TestCases extends BP_UnitTestCase {
     8    /**
     9     * @expectedDeprecated wpmu_new_blog
     10     */
    811    public function test_get_with_search_terms() {
    912        if ( ! is_multisite() ) {
     
    3235    /**
    3336     * @ticket BP5858
     37     * @expectedDeprecated wpmu_new_blog
    3438     */
    3539    public function test_get_with_search_terms_should_match_description() {
     
    6064    }
    6165
     66    /**
     67     * @expectedDeprecated wpmu_new_blog
     68     */
    6269    public function test_search_blogs() {
    6370        if ( ! is_multisite() ) {
     
    8794    /**
    8895     * @group get_by_letter
     96     * @expectedDeprecated wpmu_new_blog
    8997     */
    9098    public function test_get_by_letter() {
     
    115123    /**
    116124     * @group get_order_by
     125     * @expectedDeprecated wpmu_new_blog
    117126     */
    118127    public function test_get_order_by() {
  • trunk/tests/phpunit/testcases/blogs/functions.php

    r11737 r12243  
    282282    /**
    283283     * @group bp_blogs_restore_data
     284     * @expectedDeprecated wpmu_new_blog
    284285     */
    285286    public function test_bp_blogs_restore_data() {
     
    884885     * @group bp_blogs_comment_sync_activity_comment
    885886     * @group post_type_comment_activities
     887     * @expectedDeprecated wpmu_new_blog
    886888     */
    887889    public function test_bp_blogs_comment_sync_activity_comment_for_custom_post_type() {
     
    987989    /**
    988990     * @group bp_blogs_record_existing_blogs
     991     * @expectedDeprecated wpmu_new_blog
    989992     */
    990993    public function test_bp_blogs_record_existing_blogs_limit() {
     
    10191022    /**
    10201023     * @group bp_blogs_remove_blog
     1024     * @expectedDeprecated wpmu_new_blog
     1025     * @expectedDeprecated delete_blog
    10211026     */
    10221027    public function test_bp_blogs_remove_blog() {
     
    10661071    /**
    10671072     * @group bp_blogs_remove_blog_for_user
     1073     * @expectedDeprecated wpmu_new_blog
    10681074     */
    10691075    public function test_bp_blogs_remove_blog_for_user_is_contributor() {
  • trunk/tests/phpunit/testcases/core/avatars.php

    r11737 r12243  
    1919    /**
    2020     * @ticket BP4948
     21     * @expectedDeprecated wpmu_new_blog
    2122     */
    2223    function test_avatars_on_non_root_blog() {
  • trunk/tests/phpunit/testcases/core/caps.php

    r11737 r12243  
    66 */
    77class BP_Tests_Core_Caps extends BP_UnitTestCase {
     8    /**
     9     * @expectedDeprecated wpmu_new_blog
     10     */
    811    public function test_bp_current_user_can_should_interpret_integer_second_param_as_a_blog_id() {
    912        if ( ! is_multisite() ) {
     
    2730    /**
    2831     * @ticket BP6501
     32     * @expectedDeprecated wpmu_new_blog
    2933     */
    3034    public function test_bp_current_user_can_should_respect_blog_id_passed_in_args_array() {
  • trunk/tests/phpunit/testcases/core/functions.php

    r11737 r12243  
    696696     * @group bp_attachments
    697697     * @group bp_upload_dir
     698     * @expectedDeprecated wpmu_new_blog
    698699     */
    699700    public function test_bp_upload_dir() {
  • trunk/tests/phpunit/testcases/core/functions/bpCoreGetDirectoryPageIds.php

    r11880 r12243  
    255255    }
    256256
     257    /**
     258     * @expectedDeprecated wpmu_new_blog
     259     */
    257260    public function test_bp_core_get_directory_pages_multisite_delete_post_with_same_bp_page_id() {
    258261        if ( ! is_multisite() ) {
  • trunk/tests/phpunit/testcases/members/functions.php

    r11829 r12243  
    496496    /**
    497497     * @group bp_core_activate_signup
     498     * @expectedDeprecated wpmu_new_blog
    498499     */
    499500    public function test_bp_core_activate_signup_password() {
  • trunk/tests/phpunit/testcases/routing/url.php

    r11737 r12243  
    44 */
    55class BP_Tests_URL extends BP_UnitTestCase {
     6    /**
     7     * @expectedDeprecated wpmu_new_blog
     8     */
    69    function test_bp_core_ajax_url() {
    710        $forced = force_ssl_admin();
Note: See TracChangeset for help on using the changeset viewer.