Update tests
This commit is contained in:
parent
c2339e1983
commit
6ec06ef0db
|
@ -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() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue