Fixed unit tests

This commit is contained in:
Claudio Sanches 2017-11-22 17:00:02 -02:00
parent 4b5f0c98d7
commit bf42bfeb93
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class WC_Tests_Deprecated_Hooks extends WC_Unit_Test_Case {
function setUp() {
add_filter( 'deprecated_function_trigger_error', '__return_false' );
add_filter( 'deprecated_hook_trigger_error', '__return_false' );
$this->handlers = WC()->deprecated_hook_handlers;
}