Make WordPress Core

Changeset 597 in tests


Ignore:
Timestamp:
03/30/2012 08:26:20 AM (13 years ago)
Author:
markoheijnen
Message:

XMLRPC: Expanded the date test case of wp_getPost to also check the non GMT date's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test-xmlrpc-api/test_wp_getPost.php

    r596 r597  
    108108        $this->assertInstanceOf( 'IXR_Date', $result['post_modified_gmt'] );
    109109
     110        $this->assertEquals( $this->post_date_ts, $result['post_date']->getTimestamp() );
     111        $this->assertEquals( $this->post_date_ts, $result['post_modified']->getTimestamp() );
     112
    110113        $this->assertEquals( mktime( 0,0,0,0,0,0 ), $result['post_date_gmt']->getTimestamp() );
    111114        $this->assertEquals( mktime( 0,0,0,0,0,0 ), $result['post_modified_gmt']->getTimestamp() );
Note: See TracChangeset for help on using the changeset viewer.