Changeset 48939 for trunk/tests/phpunit/tests/general/wpError.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/wpError.php
r48937 r48939 113 113 $this->wp_error->add( 'code', 'message' ); 114 114 115 $this->assert EqualSets( array( 'code' ), $this->wp_error->get_error_codes() );115 $this->assertSameSets( array( 'code' ), $this->wp_error->get_error_codes() ); 116 116 } 117 117 … … 125 125 $expected = array( 'code', 'code2' ); 126 126 127 $this->assert EqualSets( $expected, $this->wp_error->get_error_codes() );127 $this->assertSameSets( $expected, $this->wp_error->get_error_codes() ); 128 128 } 129 129 … … 167 167 $this->wp_error->add( 'code', 'message' ); 168 168 169 $this->assert EqualSets( array( 'message' ), $this->wp_error->get_error_messages() );169 $this->assertSameSets( array( 'message' ), $this->wp_error->get_error_messages() ); 170 170 } 171 171 … … 177 177 $this->wp_error->add( 'code2', 'message2' ); 178 178 179 $this->assert EqualSets( array( 'message', 'message2' ), $this->wp_error->get_error_messages() );179 $this->assertSameSets( array( 'message', 'message2' ), $this->wp_error->get_error_messages() ); 180 180 } 181 181 … … 193 193 $this->wp_error->add( 'code', 'message' ); 194 194 195 $this->assert EqualSets( array( 'message' ), $this->wp_error->get_error_messages( 'code' ) );195 $this->assertSameSets( array( 'message' ), $this->wp_error->get_error_messages( 'code' ) ); 196 196 } 197 197 … … 302 302 $this->wp_error->add( 'code', 'message', $expected ); 303 303 304 $this->assert EqualSetsWithIndex( $expected, $this->wp_error->get_error_data() );304 $this->assertSameSetsWithIndex( $expected, $this->wp_error->get_error_data() ); 305 305 } 306 306 … … 313 313 $this->wp_error->add( 'code2', 'message2', 'data2' ); 314 314 315 $this->assert EqualSetsWithIndex( $expected, $this->wp_error->get_error_data() );315 $this->assertSameSetsWithIndex( $expected, $this->wp_error->get_error_data() ); 316 316 } 317 317 … … 350 350 $this->wp_error->add( 'code', 'message', $expected ); 351 351 352 $this->assert EqualSetsWithIndex( $expected, $this->wp_error->get_error_data( 'code' ) );352 $this->assertSameSetsWithIndex( $expected, $this->wp_error->get_error_data( 'code' ) ); 353 353 } 354 354 … … 362 362 $this->wp_error->add( 'code', 'message3', $expected ); 363 363 364 $this->assert EqualSetsWithIndex( $expected, $this->wp_error->get_error_data( 'code' ) );364 $this->assertSameSetsWithIndex( $expected, $this->wp_error->get_error_data( 'code' ) ); 365 365 } 366 366 … … 406 406 $this->wp_error->add( '', '', 'data' ); 407 407 408 $this->assert EqualSetsWithIndex( array( '' => array( '' ) ), $this->wp_error->errors );408 $this->assertSameSetsWithIndex( array( '' => array( '' ) ), $this->wp_error->errors ); 409 409 } 410 410 … … 424 424 $this->wp_error->add( '', '', 'data' ); 425 425 426 $this->assert EqualSetsWithIndex( array( '' => 'data' ), $this->wp_error->error_data );426 $this->assertSameSetsWithIndex( array( '' => 'data' ), $this->wp_error->error_data ); 427 427 } 428 428 … … 526 526 $expected = array( 'message', 'message2' ); 527 527 528 $this->assert EqualSets( $expected, $this->wp_error->get_error_messages( 'code' ) );528 $this->assertSameSets( $expected, $this->wp_error->get_error_messages( 'code' ) ); 529 529 } 530 530 … … 554 554 $this->wp_error->add_data( '' ); 555 555 556 $this->assert EqualSets( array( '' => '' ), $this->wp_error->error_data );556 $this->assertSameSets( array( '' => '' ), $this->wp_error->error_data ); 557 557 } 558 558 … … 607 607 $this->wp_error->add_data( 'data', 'code' ); 608 608 609 $this->assert EqualSets( array( 'code' => 'data' ), $this->wp_error->error_data );609 $this->assertSameSets( array( 'code' => 'data' ), $this->wp_error->error_data ); 610 610 } 611 611 … … 618 618 $this->wp_error->add_data( 'data', 'code2' ); 619 619 620 $this->assert EqualSetsWithIndex( array( 'code' => array( 'message' ) ), $this->wp_error->errors );620 $this->assertSameSetsWithIndex( array( 'code' => array( 'message' ) ), $this->wp_error->errors ); 621 621 } 622 622 … … 629 629 $this->wp_error->add_data( 'data', 'code2' ); 630 630 631 $this->assert EqualSetsWithIndex( array( 'code2' => 'data' ), $this->wp_error->error_data );631 $this->assertSameSetsWithIndex( array( 'code2' => 'data' ), $this->wp_error->error_data ); 632 632 } 633 633 … … 653 653 $after = $this->wp_error->errors; 654 654 655 $this->assert EqualSetsWithIndex( $before, $after );655 $this->assertSameSetsWithIndex( $before, $after ); 656 656 } 657 657 … … 666 666 $after = $this->wp_error->errors; 667 667 668 $this->assert EqualSetsWithIndex( $before, $after );668 $this->assertSameSetsWithIndex( $before, $after ); 669 669 } 670 670 … … 681 681 $after = $this->wp_error->errors; 682 682 683 $this->assert EqualSetsWithIndex( $before, $after );683 $this->assertSameSetsWithIndex( $before, $after ); 684 684 } 685 685
Note: See TracChangeset
for help on using the changeset viewer.