Changeset 903 in tests for trunk/tests/test_ms.php
- Timestamp:
- 07/16/2012 05:24:25 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/tests/test_ms.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/test_ms.php
r894 r903 32 32 33 33 // update the blog count cache to use get_blog_count() 34 wp_update_network_counts(); 34 wp_update_network_counts(); 35 35 $this->assertEquals( 4 + 1, (int) get_blog_count() ); 36 36 … … 53 53 54 54 // update the blog count cache to use get_blog_count() 55 wp_update_network_counts(); 55 wp_update_network_counts(); 56 56 $this->assertEquals( 1, get_blog_count() ); 57 57 } … … 153 153 activate_plugin($path, '', $network_wide = true); 154 154 $active_plugins = wp_get_active_network_plugins(); 155 $this->assertEquals( Array(WP_PLUGIN_DIR . '/hello.php'), $active_plugins ); 155 $this->assertEquals( Array(WP_PLUGIN_DIR . '/hello.php'), $active_plugins ); 156 156 157 157 //deactivate the plugin … … 189 189 190 190 function test_wp_schedule_update_network_counts() { 191 $this->assertFalse(wp_next_scheduled('update_network_counts')); 191 $this->assertFalse(wp_next_scheduled('update_network_counts')); 192 192 193 193 // We can't use wp_schedule_update_network_counts() because WP_INSTALLING is set 194 194 wp_schedule_event(time(), 'twicedaily', 'update_network_counts'); 195 195 196 $this->assertInternalType('int', wp_next_scheduled('update_network_counts')); 196 $this->assertInternalType('int', wp_next_scheduled('update_network_counts')); 197 197 } 198 198 … … 203 203 204 204 update_site_option('registration', 'all'); 205 $this->assertTrue( users_can_register_signup_filter() ); 205 $this->assertTrue( users_can_register_signup_filter() ); 206 206 207 207 update_site_option('registration', 'user'); … … 209 209 210 210 update_site_option('registration', 'none'); 211 $this->assertFalse( users_can_register_signup_filter() ); 211 $this->assertFalse( users_can_register_signup_filter() ); 212 212 } 213 213 … … 333 333 $this->assertEquals( 'example.com', $blog->domain ); 334 334 $this->assertEquals( 'my_path/', $blog->path ); 335 $this->assertEquals( '0', $blog->spam ); 335 $this->assertEquals( '0', $blog->spam ); 336 336 337 337 $result = update_blog_details( $blog_id, array('domain' => 'example2.com','spam' => 1) );
Note: See TracChangeset
for help on using the changeset viewer.