Changeset 48937 for trunk/tests/phpunit/tests/admin/includesPlugin.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesPlugin.php
r47122 r48937 24 24 foreach ( $default_headers as $name => $value ) { 25 25 $this->assertTrue( isset( $data[ $name ] ) ); 26 $this->assert Equals( $value, $data[ $name ] );26 $this->assertSame( $value, $data[ $name ] ); 27 27 } 28 28 } … … 52 52 53 53 foreach ( $expected as $name => $value ) { 54 $this->assert Equals( $value, menu_page_url( $name, false ) );54 $this->assertSame( $value, menu_page_url( $name, false ) ); 55 55 } 56 56 … … 350 350 public function test_get_plugin_files_single() { 351 351 $name = 'hello.php'; 352 $this->assert Equals( array( $name ), get_plugin_files( $name ) );352 $this->assertSame( array( $name ), get_plugin_files( $name ) ); 353 353 } 354 354 … … 370 370 'list_files_test_plugin/subdir/subfile.php', 371 371 ); 372 $this->assert Equals( $expected, $plugin_files );372 $this->assertSame( $expected, $plugin_files ); 373 373 374 374 unlink( $sub_dir . '/subfile.php' ); … … 390 390 } 391 391 392 $this->assert Equals( array(), get_mu_plugins() );392 $this->assertSame( array(), get_mu_plugins() ); 393 393 394 394 // Clean up. … … 411 411 } 412 412 413 $this->assert Equals( array(), get_mu_plugins() );413 $this->assertSame( array(), get_mu_plugins() ); 414 414 415 415 // Clean up. … … 433 433 434 434 $this->_create_plugin( '<?php\n//Silence is golden.', 'index.php', WPMU_PLUGIN_DIR ); 435 $this->assert Equals( array(), get_mu_plugins() );435 $this->assertSame( array(), get_mu_plugins() ); 436 436 437 437 // Clean up. … … 458 458 $this->_create_plugin( '<?php\n//Silence is not golden.', 'index.php', WPMU_PLUGIN_DIR ); 459 459 $found = get_mu_plugins(); 460 $this->assert Equals( array( 'index.php' ), array_keys( $found ) );460 $this->assertSame( array( 'index.php' ), array_keys( $found ) ); 461 461 462 462 // Clean up. … … 484 484 $this->_create_plugin( '<?php\n//Test 2', 'bar.txt', WPMU_PLUGIN_DIR ); 485 485 $found = get_mu_plugins(); 486 $this->assert Equals( array( 'foo.php' ), array_keys( $found ) );486 $this->assertSame( array( 'foo.php' ), array_keys( $found ) ); 487 487 488 488 // Clean up. … … 502 502 $this->assertLessThan( 0, _sort_uname_callback( array( 'Name' => 'a' ), array( 'Name' => 'b' ) ) ); 503 503 $this->assertGreaterThan( 0, _sort_uname_callback( array( 'Name' => 'c' ), array( 'Name' => 'b' ) ) ); 504 $this->assert Equals( 0, _sort_uname_callback( array( 'Name' => 'a' ), array( 'Name' => 'a' ) ) );504 $this->assertSame( 0, _sort_uname_callback( array( 'Name' => 'a' ), array( 'Name' => 'a' ) ) ); 505 505 } 506 506 … … 511 511 $this->_back_up_drop_ins(); 512 512 513 $this->assert Equals( array(), get_dropins() );513 $this->assertSame( array(), get_dropins() ); 514 514 515 515 // Clean up. … … 527 527 528 528 $dropins = get_dropins(); 529 $this->assert Equals( array( 'advanced-cache.php' ), array_keys( $dropins ) );529 $this->assertSame( array( 'advanced-cache.php' ), array_keys( $dropins ) ); 530 530 531 531 unlink( $p1[1] ); … … 591 591 */ 592 592 public function test_validate_active_plugins_empty() { 593 $this->assert Equals( array(), validate_active_plugins() );593 $this->assertSame( array(), validate_active_plugins() ); 594 594 } 595 595
Note: See TracChangeset
for help on using the changeset viewer.