Property | Type | Description | |
---|---|---|---|
$taxTypes | array | Known tax types. | |
$zones | array | Note: The real fr_vat and de_vat zones are more complex, France excludes Corsica, Germany excludes Heligoland and Bussingen, but includes 4 Austrian postal codes. Those details were irrelevant for this test. |
Method | Description | |
---|---|---|
dataProvider ( ) | Provides data for the resolver test. | |
testConstructor ( ) | ||
testResolver ( $taxable, $context, $expected, $resolver ) |
Method | Description | |
---|---|---|
getContext ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, string $customerTaxNumber = '', array $storeRegistrations = [], DateTime $date = null ) : |
Returns a mock context based on the provided data. |
protected getContext ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, string $customerTaxNumber = '', array $storeRegistrations = [], DateTime $date = null ) : |
||
$customerAddress | CommerceGuys\Addressing\AddressInterface | The customer address. |
$storeAddress | CommerceGuys\Addressing\AddressInterface | The store address. |
$customerTaxNumber | string | The customer tax number. |
$storeRegistrations | array | The store registrations. |
$date | DateTime | The date. |
return |
protected array $zones | ||
return | array |