Keep public method around

This commit is contained in:
Mike Jolley 2017-12-08 16:24:04 +00:00
parent 82c282e83a
commit b4bfe6303f
2 changed files with 5 additions and 1 deletions

View File

@ -65,6 +65,11 @@ final class WC_Cart_Fees {
$this->cart = $cart;
}
/**
* Register methods for this object on the appropriate WordPress hooks.
*/
public function init() {}
/**
* Add a fee. Fee IDs must be unique.
*

View File

@ -15,7 +15,6 @@ class WC_Tests_WC_Cart_Fees extends WC_Unit_Test_Case {
public function test_set_get_remove_fees() {
$cart_fees = new WC_Cart_Fees( wc()->cart );
$cart_fees->init();
// Test add_fee.
$args = array(