Changeset 48937 for trunk/tests/phpunit/tests/ajax/DeleteComment.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/DeleteComment.php
r48220 r48937 89 89 90 90 // Ensure everything is correct. 91 $this->assert Equals( $comment->comment_ID, (string) $xml->response[0]->comment['id'] );92 $this->assert Equals( 'delete-comment_' . $comment->comment_ID, (string) $xml->response['action'] );91 $this->assertSame( $comment->comment_ID, (string) $xml->response[0]->comment['id'] ); 92 $this->assertSame( 'delete-comment_' . $comment->comment_ID, (string) $xml->response['action'] ); 93 93 $this->assertGreaterThanOrEqual( time() - 10, (int) $xml->response[0]->comment[0]->supplemental[0]->time[0] ); 94 94 $this->assertLessThanOrEqual( time(), (int) $xml->response[0]->comment[0]->supplemental[0]->time[0] ); … … 203 203 $this->fail( 'Expected exception: WPAjaxDieStopException' ); 204 204 } catch ( WPAjaxDieStopException $e ) { 205 $this->assert Equals( 10, strlen( $e->getMessage() ) );205 $this->assertSame( 10, strlen( $e->getMessage() ) ); 206 206 $this->assertTrue( is_numeric( $e->getMessage() ) ); 207 207 } catch ( Exception $e ) { … … 253 253 $this->fail( 'Expected exception: WPAjaxDieStopException' ); 254 254 } catch ( WPAjaxDieStopException $e ) { 255 $this->assert Equals( 10, strlen( $e->getMessage() ) );255 $this->assertSame( 10, strlen( $e->getMessage() ) ); 256 256 $this->assertTrue( is_numeric( $e->getMessage() ) ); 257 257 } catch ( Exception $e ) {
Note: See TracChangeset
for help on using the changeset viewer.