Changeset 48937 for trunk/tests/phpunit/tests/adminbar.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/adminbar.php
r47198 r48937 44 44 $nodes = $admin_bar->get_nodes(); 45 45 $this->assertFalse( $nodes['new-content']->parent ); 46 $this->assert Equals( 'new-content', $nodes['add-new-content']->parent );46 $this->assertSame( 'new-content', $nodes['add-new-content']->parent ); 47 47 48 48 _unregister_post_type( 'content' ); … … 65 65 66 66 $node1 = $admin_bar->get_node( 'test-node' ); 67 $this->assert Equals( array( 'class' => 'test-class' ), $node1->meta );67 $this->assertSame( array( 'class' => 'test-class' ), $node1->meta ); 68 68 69 69 $admin_bar->add_node( … … 75 75 76 76 $node2 = $admin_bar->get_node( 'test-node' ); 77 $this->assert Equals(77 $this->assertSame( 78 78 array( 79 79 'class' => 'test-class', … … 101 101 102 102 // Site menu points to the home page instead of the admin URL. 103 $this->assert Equals( home_url( '/' ), $node_site_name->href );103 $this->assertSame( home_url( '/' ), $node_site_name->href ); 104 104 105 105 // No profile links as the user doesn't have any permissions on the site. … … 126 126 127 127 // Site menu points to the admin URL. 128 $this->assert Equals( admin_url( '/' ), $node_site_name->href );128 $this->assertSame( admin_url( '/' ), $node_site_name->href ); 129 129 130 130 $profile_url = admin_url( 'profile.php' ); 131 131 132 132 // Profile URLs point to profile.php. 133 $this->assert Equals( $profile_url, $node_my_account->href );134 $this->assert Equals( $profile_url, $node_user_info->href );135 $this->assert Equals( $profile_url, $node_edit_profile->href );133 $this->assertSame( $profile_url, $node_my_account->href ); 134 $this->assertSame( $profile_url, $node_user_info->href ); 135 $this->assertSame( $profile_url, $node_edit_profile->href ); 136 136 } 137 137 … … 178 178 179 179 // Profile URLs should go to the user's primary blog. 180 $this->assert Equals( $primary_profile_url, $node_my_account->href );181 $this->assert Equals( $primary_profile_url, $node_user_info->href );182 $this->assert Equals( $primary_profile_url, $node_edit_profile->href );180 $this->assertSame( $primary_profile_url, $node_my_account->href ); 181 $this->assertSame( $primary_profile_url, $node_user_info->href ); 182 $this->assertSame( $primary_profile_url, $node_edit_profile->href ); 183 183 184 184 restore_current_blog(); … … 233 233 234 234 // Profile URLs should go to the user's primary blog. 235 $this->assert Equals( $user_profile_url, $node_my_account->href );236 $this->assert Equals( $user_profile_url, $node_user_info->href );237 $this->assert Equals( $user_profile_url, $node_edit_profile->href );235 $this->assertSame( $user_profile_url, $node_my_account->href ); 236 $this->assertSame( $user_profile_url, $node_user_info->href ); 237 $this->assertSame( $user_profile_url, $node_edit_profile->href ); 238 238 239 239 restore_current_blog(); … … 464 464 465 465 $this->assertNotNull( $wp_logo_node ); 466 $this->assert Same( false,$wp_logo_node->href );466 $this->assertFalse( $wp_logo_node->href ); 467 467 $this->assertArrayHasKey( 'tabindex', $wp_logo_node->meta ); 468 468 $this->assertSame( 0, $wp_logo_node->meta['tabindex'] ); … … 688 688 $query_params = array(); 689 689 wp_parse_str( $parsed_url['query'], $query_params ); 690 $this->assert Equals( $uuid, $query_params['changeset_uuid'] );690 $this->assertSame( $uuid, $query_params['changeset_uuid'] ); 691 691 $this->assertNotContains( 'changeset_uuid', $query_params['url'] ); 692 692 }
Note: See TracChangeset
for help on using the changeset viewer.