Changeset 41661 for trunk/tests/phpunit/tests/user/multisite.php
- Timestamp:
- 10/02/2017 01:43:48 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/multisite.php
r41255 r41661 121 121 122 122 $this->assertTrue( is_blog_user() ); 123 $this->assertTrue( is_blog_user( $wpdb->blogid) );123 $this->assertTrue( is_blog_user( get_current_blog_id() ) ); 124 124 125 125 $blog_ids = array(); … … 150 150 151 151 wp_set_current_user( $user1_id ); 152 $site_id = get_current_blog_id(); 152 153 153 154 $this->assertTrue( is_user_member_of_blog() ); 154 155 $this->assertTrue( is_user_member_of_blog( 0, 0 ) ); 155 $this->assertTrue( is_user_member_of_blog( 0, $ wpdb->blogid ) );156 $this->assertTrue( is_user_member_of_blog( 0, $site_id ) ); 156 157 $this->assertTrue( is_user_member_of_blog( $user1_id ) ); 157 $this->assertTrue( is_user_member_of_blog( $user1_id, $ wpdb->blogid ) );158 $this->assertTrue( is_user_member_of_blog( $user1_id, $site_id ) ); 158 159 159 160 $blog_ids = self::factory()->blog->create_many( 1 );
Note: See TracChangeset
for help on using the changeset viewer.