Updated unit test
This commit is contained in:
parent
74768d8abd
commit
f5d2c98c3e
|
@ -391,7 +391,6 @@ class WC_Countries {
|
||||||
return apply_filters( 'woocommerce_vat_countries', array_merge( $eu_countries, $vat_countries ) );
|
return apply_filters( 'woocommerce_vat_countries', array_merge( $eu_countries, $vat_countries ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the correct string for shipping - either 'to the' or 'to'.
|
* Gets the correct string for shipping - either 'to the' or 'to'.
|
||||||
*
|
*
|
||||||
|
|
|
@ -209,4 +209,14 @@ class WC_Tests_Countries extends WC_Unit_Test_Case {
|
||||||
$countries = new WC_Countries();
|
$countries = new WC_Countries();
|
||||||
$this->assertCount( 27, $countries->get_european_union_countries() );
|
$this->assertCount( 27, $countries->get_european_union_countries() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test get_vat_countries.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function test_get_vat_countries() {
|
||||||
|
$countries = new WC_Countries();
|
||||||
|
$this->assertCount( 80, $countries->get_vat_countries() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue