@@ -461,15 +461,8 @@ public function test_callback_woocommerce_attribute_deleted() {
461461 public function test_callback_woocommerce_tax_rate_added () {
462462 // Create tax rate array for later use.
463463 $ tax_rate = array (
464- 'tax_rate_country ' => 'USA ' ,
465- 'tax_rate_state ' => 'Pennsylvania ' ,
466464 'tax_rate ' => '10 ' ,
467465 'tax_rate_name ' => 'test tax rate ' ,
468- 'tax_rate_priority ' => 1 ,
469- 'tax_rate_compound ' => 1 ,
470- 'tax_rate_shipping ' => 1 ,
471- 'tax_rate_order ' => 0 ,
472- 'tax_rate_class ' => '' ,
473466 );
474467
475468 // Expected log calls
@@ -478,7 +471,7 @@ public function test_callback_woocommerce_tax_rate_added() {
478471 ->with (
479472 $ this ->equalTo ( '"%4$s" tax rate created ' ),
480473 $ this ->equalTo ( $ tax_rate ),
481- $ this ->notEqualTo ( '' ),
474+ $ this ->greaterThan ( 0 ),
482475 $ this ->equalTo ( 'tax ' ),
483476 $ this ->equalTo ( 'created ' )
484477 );
@@ -546,10 +539,8 @@ public function test_callback_woocommerce_tax_rate_deleted() {
546539 $ this ->mock ->expects ( $ this ->once () )
547540 ->method ( 'log ' )
548541 ->with (
549- $ this ->equalTo ( '"%s" tax rate deleted ' ),
550- $ this ->equalTo (
551- array ( 'tax_rate_name ' => 'test tax rate ' )
552- ),
542+ $ this ->equalTo ( 'Tax rate identified by ID:"%s" deleted ' ),
543+ $ this ->equalTo ( compact ( 'tax_rate_id ' ) ),
553544 $ this ->equalTo ( $ tax_rate_id ),
554545 $ this ->equalTo ( 'tax ' ),
555546 $ this ->equalTo ( 'deleted ' )
0 commit comments