- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/updateBlogDetails.php
r46586 r48937 40 40 $blog = get_site( $blog_id ); 41 41 42 $this->assert Equals( 'example.com', $blog->domain );43 $this->assert Equals( '/my_path/', $blog->path );44 $this->assert Equals( '0', $blog->spam );42 $this->assertSame( 'example.com', $blog->domain ); 43 $this->assertSame( '/my_path/', $blog->path ); 44 $this->assertSame( '0', $blog->spam ); 45 45 } 46 46 … … 72 72 $blog = get_site( $blog_id ); 73 73 74 $this->assert Equals( $flag_value, $blog->{$flag} );74 $this->assertSame( $flag_value, $blog->{$flag} ); 75 75 76 76 // The hook attached to this flag should have fired once during update_blog_details(). 77 $this->assert Equals( 1, $test_action_counter );77 $this->assertSame( 1, $test_action_counter ); 78 78 79 79 // Update the site to the exact same flag value for this flag. … … 81 81 82 82 // The hook attached to this flag should not have fired again. 83 $this->assert Equals( 1, $test_action_counter );83 $this->assertSame( 1, $test_action_counter ); 84 84 85 85 remove_action( $hook, array( $this, '_action_counter_cb' ), 10 ); … … 117 117 $site = get_site( 1 ); 118 118 119 $this->assert Equals( $expected, $site->path );119 $this->assertSame( $expected, $site->path ); 120 120 } 121 121
Note: See TracChangeset
for help on using the changeset viewer.