WordPress.org

Make WordPress Core

Changeset 506 in tests


Ignore:
Timestamp:
02/01/12 20:07:41 (2 years ago)
Author:
nacin
Message:

Convert SimpleXMLElement objects to strings to compare.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_admin_includes_ajax_actions.php

    r500 r506  
    227227         
    228228        // Ensure everything is correct 
    229         $this->assertEquals( $xml->response[0]->comment['id'], $comment->comment_ID ); 
    230         $this->assertEquals( $xml->response['action'], 'delete-comment_' . $comment->comment_ID ); 
     229        $this->assertEquals( (string) $xml->response[0]->comment['id'], $comment->comment_ID ); 
     230        $this->assertEquals( (string) $xml->response['action'], 'delete-comment_' . $comment->comment_ID ); 
    231231        $this->assertGreaterThanOrEqual( time() - 10, (int) $xml->response[0]->comment[0]->supplemental[0]->time[0] ); 
    232232        $this->assertLessThanOrEqual( time(), (int) $xml->response[0]->comment[0]->supplemental[0]->time[0] ); 
Note: See TracChangeset for help on using the changeset viewer.