Updated unit test

This commit is contained in:
Claudio Sanches 2020-02-05 11:16:29 -03:00
parent 74768d8abd
commit f5d2c98c3e
2 changed files with 10 additions and 1 deletions

View File

@ -391,7 +391,6 @@ class WC_Countries {
return apply_filters( 'woocommerce_vat_countries', array_merge( $eu_countries, $vat_countries ) );
}
/**
* Gets the correct string for shipping - either 'to the' or 'to'.
*

View File

@ -209,4 +209,14 @@ class WC_Tests_Countries extends WC_Unit_Test_Case {
$countries = new WC_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() );
}
}