Fix method call and unit test
This commit is contained in:
parent
7c6eb45518
commit
f03c82d749
|
@ -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',
|
||||
|
|
|
@ -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() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue