Changeset 47012
- Timestamp:
- 12/25/2019 06:15:13 PM (5 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link/getDashboardUrl.php
r46586 r47012 69 69 add_user_to_blog( get_current_blog_id(), self::$user_id, 'administrator' ); 70 70 71 wp mu_delete_blog( $site_id, true);71 wp_delete_site( $site_id ); 72 72 73 73 $this->assertEquals( $expected, $result ); -
trunk/tests/phpunit/tests/multisite/bootstrap.php
r46586 r47012 104 104 105 105 foreach ( self::$site_ids as $id ) { 106 wp mu_delete_blog( $id, true);106 wp_delete_site( $id ); 107 107 } 108 108 -
trunk/tests/phpunit/tests/multisite/getBlogDetails.php
r46586 r47012 36 36 public static function wpTearDownAfterClass() { 37 37 foreach ( self::$site_ids as $id ) { 38 wp mu_delete_blog( $id, true);38 wp_delete_site( $id ); 39 39 } 40 40 -
trunk/tests/phpunit/tests/multisite/getIdFromBlogname.php
r46586 r47012 73 73 74 74 foreach ( self::$site_ids as $id ) { 75 wp mu_delete_blog( $id, true);75 wp_delete_site( $id ); 76 76 } 77 77 -
trunk/tests/phpunit/tests/multisite/getMainSiteId.php
r46586 r47012 55 55 public static function wpTearDownAfterClass() { 56 56 foreach ( self::$site_ids as $id ) { 57 wp mu_delete_blog( $id, true);57 wp_delete_site( $id ); 58 58 } 59 59 -
trunk/tests/phpunit/tests/multisite/getSite.php
r46586 r47012 35 35 public static function wpTearDownAfterClass() { 36 36 foreach ( self::$site_ids as $id ) { 37 wp mu_delete_blog( $id, true);37 wp_delete_site( $id ); 38 38 } 39 39 -
trunk/tests/phpunit/tests/multisite/network.php
r46586 r47012 64 64 65 65 foreach ( self::$different_site_ids as $id ) { 66 wp mu_delete_blog( $id, true);66 wp_delete_site( $id ); 67 67 } 68 68 … … 156 156 157 157 foreach ( $site_ids as $site_id ) { 158 wp mu_delete_blog( $site_id, true);158 wp_delete_site( $site_id ); 159 159 } 160 160 wp_update_network_counts(); … … 176 176 177 177 foreach ( $site_ids as $site_id ) { 178 wp mu_delete_blog( $site_id, true);178 wp_delete_site( $site_id ); 179 179 } 180 180 wp_update_network_counts(); … … 196 196 197 197 foreach ( $site_ids as $site_id ) { 198 wp mu_delete_blog( $site_id, true);198 wp_delete_site( $site_id ); 199 199 } 200 200 wp_update_network_counts(); … … 591 591 $original_count = get_blog_count( self::$different_network_id ); 592 592 593 $site_id = self::factory()->blog->create( 594 array( 595 'domain' => 'example.org', 596 'path' => '/', 597 'site_id' => self::$different_network_id, 598 ) 599 ); 593 $site_id = wpmu_create_blog( 'example.org', '/', '', 1, array(), self::$different_network_id ); 600 594 601 595 $result = get_blog_count( self::$different_network_id ); -
trunk/tests/phpunit/tests/multisite/site.php
r46991 r47012 80 80 81 81 foreach ( self::$site_ids as $id ) { 82 wp mu_delete_blog( $id, true);82 wp_delete_site( $id ); 83 83 } 84 84 -
trunk/tests/phpunit/tests/multisite/siteDetails.php
r46586 r47012 140 140 $cached_details = wp_cache_get( $site->id, 'site-details' ); 141 141 142 wp mu_delete_blog( $id, true);142 wp_delete_site( $id ); 143 143 wp_update_network_site_counts(); 144 144 -
trunk/tests/phpunit/tests/multisite/siteMeta.php
r46586 r47012 42 42 } 43 43 44 wp mu_delete_blog( self::$site_id, true);45 wp mu_delete_blog( self::$site_id2, true);44 wp_delete_site( self::$site_id ); 45 wp_delete_site( self::$site_id2 ); 46 46 47 47 wp_update_network_site_counts(); … … 214 214 $this->assertSame( 'bar', get_site_meta( $site_id, 'foo1', true ) ); 215 215 216 wp mu_delete_blog( $site_id, true);216 wp_delete_site( $site_id ); 217 217 218 218 $this->assertSame( '', get_site_meta( $site_id, 'foo', true ) ); -
trunk/tests/phpunit/tests/multisite/siteQuery.php
r46586 r47012 106 106 107 107 foreach ( self::$site_ids as $id ) { 108 wp mu_delete_blog( $id, true);108 wp_delete_site( $id ); 109 109 } 110 110 -
trunk/tests/phpunit/tests/multisite/wpGetSites.php
r46586 r47012 44 44 public static function wpTearDownAfterClass() { 45 45 foreach ( self::$site_ids as $id ) { 46 wp mu_delete_blog( $id, true);46 wp_delete_site( $id ); 47 47 } 48 48 -
trunk/tests/phpunit/tests/multisite/wpInstallDefaults.php
r46586 r47012 22 22 23 23 restore_current_blog(); 24 wpmu_delete_blog( $blog_id, true ); 24 25 wp_delete_site( $blog_id ); 25 26 26 27 $this->assertNotEmpty( $first_page->post_content ); … … 47 48 48 49 restore_current_blog(); 49 wpmu_delete_blog( $blog_id, true ); 50 51 wp_delete_site( $blog_id ); 50 52 51 53 $this->assertNotEmpty( $first_page->post_content ); … … 72 74 73 75 restore_current_blog(); 74 wpmu_delete_blog( $blog_id, true ); 76 77 wp_delete_site( $blog_id ); 75 78 76 79 $this->assertEquals( 'Some page content', $first_page->post_content ); -
trunk/tests/phpunit/tests/multisite/wpMSSitesListTable.php
r46586 r47012 84 84 public static function wpTearDownAfterClass() { 85 85 foreach ( self::$site_ids as $site_id ) { 86 wp mu_delete_blog( $site_id, true);86 wp_delete_site( $site_id ); 87 87 } 88 88 } -
trunk/tests/phpunit/tests/multisite/wpmuValidateBlogSignup.php
r46586 r47012 48 48 wpmu_delete_user( self::$existing_user_id ); 49 49 50 wp mu_delete_blog( self::$existing_blog_id, true);50 wp_delete_site( self::$existing_blog_id ); 51 51 } 52 52 -
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r46657 r47012 137 137 138 138 if ( is_multisite() ) { 139 wp mu_delete_blog( self::$site, true );139 wp_delete_site( self::$site ); 140 140 } 141 141 -
trunk/tests/phpunit/tests/user/getActiveBlogForUser.php
r46586 r47012 52 52 $result = get_active_blog_for_user( self::$user_id ); 53 53 54 wp mu_delete_blog( $site_id_one, true );55 wp mu_delete_blog( $site_id_two, true);54 wp_delete_site( $site_id_one ); 55 wp_delete_site( $site_id_two ); 56 56 57 57 $this->assertEquals( $primary_site_id, $result->id ); … … 70 70 $result = get_active_blog_for_user( self::$user_id ); 71 71 72 wp mu_delete_blog( $primary_site_id, true);72 wp_delete_site( $primary_site_id ); 73 73 74 74 $this->assertEquals( $primary_site_id, $result->id ); … … 93 93 $result = get_active_blog_for_user( self::$user_id ); 94 94 95 wp mu_delete_blog( $site_id, true);95 wp_delete_site( $site_id ); 96 96 97 97 $this->assertEquals( $current_site_id, $result->id ); -
trunk/tests/phpunit/tests/user/multisite.php
r46586 r47012 390 390 restore_current_blog(); 391 391 392 wp mu_delete_blog( $site_id );392 wp_delete_site( $site_id ); 393 393 wpmu_delete_user( $user_id ); 394 394 … … 403 403 404 404 $result = add_user_to_blog( 73622, $site_id, 'subscriber' ); 405 wpmu_delete_blog( $site_id ); 405 406 wp_delete_site( $site_id ); 406 407 407 408 $this->assertWPError( $result );
Note: See TracChangeset
for help on using the changeset viewer.