Fix method call and unit test

This commit is contained in:
Gerhard 2019-10-31 11:28:19 +02:00
parent 7c6eb45518
commit f03c82d749
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ class WC_Countries {
* @return array of country codes.
*/
public function get_vat_countries() {
$eu_countries = get_european_union_countries();
$eu_countries = $this->get_european_union_countries();
$countries = array(
'GB',

View File

@ -207,7 +207,7 @@ class WC_Tests_Countries extends WC_Unit_Test_Case {
public function test_get_european_union_countries() {
// After Brexit there should be 27 countries in the EU.
$countries = new WC_Countries();
$this->assertCount( 27, count( $countries->get_european_union_countries() ) );
$this->assertCount( 27, $countries->get_european_union_countries() );
}
/**