Update tests

This commit is contained in:
Mike Jolley 2017-03-10 14:52:41 +00:00
parent c2339e1983
commit 6ec06ef0db
1 changed files with 4 additions and 4 deletions

View File

@ -1030,10 +1030,10 @@ class WC_Tests_CRUD_Orders extends WC_Unit_Test_Case {
function test_get_date_completed() {
$object = new WC_Order();
$object->set_date_completed( '2016-12-12' );
$this->assertEquals( '1481500800', $object->get_date_completed() );
$this->assertEquals( '1481500800', $object->get_date_completed()->getOffsetTimestamp() );
$object->set_date_completed( '1481500800' );
$this->assertEquals( 1481500800, $object->get_date_completed() );
$this->assertEquals( 1481500800, $object->get_date_completed()->getTimestamp() );
}
/**
@ -1043,10 +1043,10 @@ class WC_Tests_CRUD_Orders extends WC_Unit_Test_Case {
$object = new WC_Order();
$set_to = 'PayPal';
$object->set_date_paid( '2016-12-12' );
$this->assertEquals( 1481500800, $object->get_date_paid() );
$this->assertEquals( 1481500800, $object->get_date_paid()->getOffsetTimestamp() );
$object->set_date_paid( '1481500800' );
$this->assertEquals( 1481500800, $object->get_date_paid() );
$this->assertEquals( 1481500800, $object->get_date_paid()->getTimestamp() );
}
/**