PHP Class CommerceGuys\Tax\Tests\Resolver\DefaultTaxTypeResolverTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: commerceguys/tax

Protected Properties

Property Type Description
$taxTypes array Known tax types.
$zones array Known zones.

Public Methods

Method Description
testConstructor ( )
testResolver ( $resolver )

Protected Methods

Method 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 method

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.
return CommerceGuys\Tax\Resolver\Context

testConstructor() public method

public testConstructor ( )

testResolver() public method

public testResolver ( $resolver )

Property Details

$taxTypes protected property

Known tax types.
protected array $taxTypes
return array

$zones protected property

Known zones.
protected array $zones
return array