- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/updateBlogDetails.php
r51860 r52010 12 12 * should return false. 13 13 */ 14 function test_update_blog_details_with_empty_args() {14 public function test_update_blog_details_with_empty_args() { 15 15 $result = update_blog_details( 1, array() ); 16 16 $this->assertFalse( $result ); … … 20 20 * If the ID passed is not that of a current site, we should expect false. 21 21 */ 22 function test_update_blog_details_invalid_blog_id() {22 public function test_update_blog_details_invalid_blog_id() { 23 23 $result = update_blog_details( 999, array( 'domain' => 'example.com' ) ); 24 24 $this->assertFalse( $result ); 25 25 } 26 26 27 function test_update_blog_details() {27 public function test_update_blog_details() { 28 28 $blog_id = self::factory()->blog->create(); 29 29 … … 67 67 } 68 68 69 add_action( $hook, array( $this, ' _action_counter_cb' ), 10 );69 add_action( $hook, array( $this, 'action_counter_cb' ), 10 ); 70 70 71 71 update_blog_details( $blog_id, array( $flag => $flag_value ) ); … … 83 83 $this->assertSame( 1, $test_action_counter ); 84 84 85 remove_action( $hook, array( $this, ' _action_counter_cb' ), 10 );85 remove_action( $hook, array( $this, 'action_counter_cb' ), 10 ); 86 86 } 87 87 … … 102 102 * Provide a counter to determine that hooks are firing when intended. 103 103 */ 104 function _action_counter_cb() {104 public function action_counter_cb() { 105 105 global $test_action_counter; 106 106 $test_action_counter++;
Note: See TracChangeset
for help on using the changeset viewer.