- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/error-protection/recovery-mode-cookie-service.php
r46586 r48937 15 15 $error = $service->validate_cookie( 'gibbersih' ); 16 16 $this->assertWPError( $error ); 17 $this->assert Equals( 'invalid_format', $error->get_error_code() );17 $this->assertSame( 'invalid_format', $error->get_error_code() ); 18 18 19 19 $error = $service->validate_cookie( base64_encode( 'test|data|format' ) ); 20 20 $this->assertWPError( $error ); 21 $this->assert Equals( 'invalid_format', $error->get_error_code() );21 $this->assertSame( 'invalid_format', $error->get_error_code() ); 22 22 23 23 $error = $service->validate_cookie( base64_encode( 'test|data|format|to|long' ) ); 24 24 $this->assertWPError( $error ); 25 $this->assert Equals( 'invalid_format', $error->get_error_code() );25 $this->assertSame( 'invalid_format', $error->get_error_code() ); 26 26 } 27 27 … … 40 40 $error = $service->validate_cookie( $cookie ); 41 41 $this->assertWPError( $error ); 42 $this->assert Equals( 'expired', $error->get_error_code() );42 $this->assertSame( 'expired', $error->get_error_code() ); 43 43 } 44 44 … … 56 56 $error = $service->validate_cookie( $cookie ); 57 57 $this->assertWPError( $error ); 58 $this->assert Equals( 'signature_mismatch', $error->get_error_code() );58 $this->assertSame( 'signature_mismatch', $error->get_error_code() ); 59 59 } 60 60 … … 73 73 $error = $service->validate_cookie( $cookie ); 74 74 $this->assertWPError( $error ); 75 $this->assert Equals( 'invalid_created_at', $error->get_error_code() );75 $this->assertSame( 'invalid_created_at', $error->get_error_code() ); 76 76 } 77 77
Note: See TracChangeset
for help on using the changeset viewer.