Fix unit tests
This commit is contained in:
parent
a3ae757106
commit
8867368b97
|
@ -1129,7 +1129,7 @@ class WC_Tests_CRUD_Orders extends WC_Unit_Test_Case {
|
|||
function test_get_checkout_payment_url() {
|
||||
$object = new WC_Order();
|
||||
$id = $object->save();
|
||||
$this->assertEquals( '?order-pay=' . $id . '&pay_for_order=true&key=' . $object->get_order_key(), $object->get_checkout_payment_url() );
|
||||
$this->assertEquals( 'http://example.org?order-pay=' . $id . '&pay_for_order=true&key=' . $object->get_order_key(), $object->get_checkout_payment_url() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1139,7 +1139,7 @@ class WC_Tests_CRUD_Orders extends WC_Unit_Test_Case {
|
|||
$object = new WC_Order();
|
||||
$object->set_order_key( 'xxx' );
|
||||
$id = $object->save();
|
||||
$this->assertEquals( '?order-received=' . $id . '&key=' . $object->get_order_key(), $object->get_checkout_order_received_url() );
|
||||
$this->assertEquals( 'http://example.org?order-received=' . $id . '&key=' . $object->get_order_key(), $object->get_checkout_order_received_url() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1172,7 +1172,7 @@ class WC_Tests_CRUD_Orders extends WC_Unit_Test_Case {
|
|||
function test_get_view_order_url() {
|
||||
$object = new WC_Order();
|
||||
$id = $object->save();
|
||||
$this->assertEquals( '?view-order=' . $id, $object->get_view_order_url() );
|
||||
$this->assertEquals( 'http://example.org?view-order=' . $id, $object->get_view_order_url() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue