@@ -461,15 +461,8 @@ public function test_callback_woocommerce_attribute_deleted() {
461
461
public function test_callback_woocommerce_tax_rate_added () {
462
462
// Create tax rate array for later use.
463
463
$ tax_rate = array (
464
- 'tax_rate_country ' => 'USA ' ,
465
- 'tax_rate_state ' => 'Pennsylvania ' ,
466
464
'tax_rate ' => '10 ' ,
467
465
'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 ' => '' ,
473
466
);
474
467
475
468
// Expected log calls
@@ -478,7 +471,7 @@ public function test_callback_woocommerce_tax_rate_added() {
478
471
->with (
479
472
$ this ->equalTo ( '"%4$s" tax rate created ' ),
480
473
$ this ->equalTo ( $ tax_rate ),
481
- $ this ->notEqualTo ( '' ),
474
+ $ this ->greaterThan ( 0 ),
482
475
$ this ->equalTo ( 'tax ' ),
483
476
$ this ->equalTo ( 'created ' )
484
477
);
@@ -546,10 +539,8 @@ public function test_callback_woocommerce_tax_rate_deleted() {
546
539
$ this ->mock ->expects ( $ this ->once () )
547
540
->method ( 'log ' )
548
541
->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 ' ) ),
553
544
$ this ->equalTo ( $ tax_rate_id ),
554
545
$ this ->equalTo ( 'tax ' ),
555
546
$ this ->equalTo ( 'deleted ' )
@@ -563,6 +554,6 @@ public function test_callback_woocommerce_tax_rate_deleted() {
563
554
}
564
555
565
556
public function test_callback_updated_option () {
566
-
557
+ $ this -> markTestSkipped ( ' This test needs to be written. ' );
567
558
}
568
559
}
0 commit comments