Changeset 51331 for trunk/tests/phpunit/tests/multisite/site.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/site.php
r49603 r51331 95 95 $this->assertFalse( ms_is_switched() ); 96 96 $current_blog_id = get_current_blog_id(); 97 $this->assertI nternalType( 'integer',$current_blog_id );97 $this->assertIsInt( $current_blog_id ); 98 98 99 99 wp_cache_set( 'switch-test', $current_blog_id, 'switch-test' ); … … 142 142 $blog_id = self::factory()->blog->create(); 143 143 144 $this->assertI nternalType( 'int',$blog_id );144 $this->assertIsInt( $blog_id ); 145 145 $prefix = $wpdb->get_blog_prefix( $blog_id ); 146 146 … … 1329 1329 $site_id = wp_insert_site( $site_data ); 1330 1330 1331 $this->assertI nternalType( 'integer',$site_id );1331 $this->assertIsInt( $site_id ); 1332 1332 1333 1333 $site = get_site( $site_id ); … … 1435 1435 remove_action( 'clean_site_cache', array( $this, 'action_database_insert_on_clean_site_cache' ) ); 1436 1436 1437 $this->assertI nternalType( 'integer',$site_id );1437 $this->assertIsInt( $site_id ); 1438 1438 1439 1439 } … … 1820 1820 ) 1821 1821 ); 1822 $this->assertI nternalType( 'integer',$site_id );1822 $this->assertIsInt( $site_id ); 1823 1823 1824 1824 $site = get_site( $site_id ); … … 1828 1828 $second_date = current_time( 'mysql', true ); 1829 1829 $site_id = wp_update_site( $site_id, array() ); 1830 $this->assertI nternalType( 'integer',$site_id );1830 $this->assertIsInt( $site_id ); 1831 1831 1832 1832 $site = get_site( $site_id );
Note: See TracChangeset
for help on using the changeset viewer.