Changeset 51367 for trunk/tests/phpunit/tests/admin/includesScreen.php
- Timestamp:
- 07/07/2021 10:32:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesScreen.php
r50449 r51367 392 392 393 393 $tabs = $screen->get_help_tabs(); 394 $this->assert Same( 4, count( $tabs ));394 $this->assertCount( 4, $tabs ); 395 395 $this->assertArrayHasKey( $tab_1, $tabs ); 396 396 $this->assertArrayHasKey( $tab_2, $tabs ); … … 412 412 $screen->remove_help_tab( $tab_1 ); 413 413 $this->assertNull( $screen->get_help_tab( $tab_1 ) ); 414 $this->assert Same( 3, count( $screen->get_help_tabs()) );414 $this->assertCount( 3, $screen->get_help_tabs() ); 415 415 416 416 $screen->remove_help_tab( $tab_2 ); 417 417 $this->assertNull( $screen->get_help_tab( $tab_2 ) ); 418 $this->assert Same( 2, count( $screen->get_help_tabs()) );418 $this->assertCount( 2, $screen->get_help_tabs() ); 419 419 420 420 $screen->remove_help_tab( $tab_3 ); 421 421 $this->assertNull( $screen->get_help_tab( $tab_3 ) ); 422 $this->assert Same( 1, count( $screen->get_help_tabs()) );422 $this->assertCount( 1, $screen->get_help_tabs() ); 423 423 424 424 $screen->remove_help_tab( $tab_4 ); 425 425 $this->assertNull( $screen->get_help_tab( $tab_4 ) ); 426 $this->assert Same( 0, count( $screen->get_help_tabs()) );426 $this->assertCount( 0, $screen->get_help_tabs() ); 427 427 428 428 $screen->remove_help_tabs();
Note: See TracChangeset
for help on using the changeset viewer.