PHP Class CommerceGuys\Tax\Tests\Resolver\DefaultTaxTypeResolverTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: commerceguys/tax

Protected Properties

Свойство Type Description
$taxTypes array Known tax types.
$zones array Known zones.

Méthodes publiques

Méthode Description
testConstructor ( )
testResolver ( $resolver )

Méthodes protégées

Méthode Description
getContext ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, array $storeRegistrations = [] ) : Context Returns a mock context based on the provided data.

Method Details

getContext() protected méthode

Returns a mock context based on the provided data.
protected getContext ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, array $storeRegistrations = [] ) : Context
$customerAddress CommerceGuys\Addressing\AddressInterface The customer address.
$storeAddress CommerceGuys\Addressing\AddressInterface The store address.
$storeRegistrations array The store registrations.
Résultat CommerceGuys\Tax\Resolver\Context

testConstructor() public méthode

public testConstructor ( )

testResolver() public méthode

public testResolver ( $resolver )

Property Details

$taxTypes protected_oe property

Known tax types.
protected array $taxTypes
Résultat array

$zones protected_oe property

Known zones.
protected array $zones
Résultat array