PHP Class Sonata\Tests\Component\Delivery\SelectorTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
testAvailableMethods ( )
testEmptyBasket ( )
testGetAvailableMethodsWithAlreadySelectedCode ( ) Provide twice the same delivery code.
testGetAvailableMethodsWithDisabledDelivery ( ) Provide a delivery method that require an address but none is provided.
testGetAvailableMethodsWithEmptyBasket ( ) Test the getAvailableMethods methods with an empty basket provided.
testGetAvailableMethodsWithFilledBasket ( ) Test the getAvailableMethods methods with a product provided but no address and no related delivery methods.
testGetAvailableMethodsWithRequiredAddressDelivery ( ) Provide a delivery method that require an address but none is provided.
testGetAvailableMethodsWithUncoveredCountry ( ) Try to fetch a delivery not having a handled country.
testGetAvailableMethodsWithUndefinedCode ( ) Try to fetch a delivery based on an undefined code.
testGetAvailableMethodsWithoutBasket ( ) Test the getAvailableMethods methods with no basket nor address provided.
testNonExistentProduct ( )

Method Details

testAvailableMethods() public method

testEmptyBasket() public method

public testEmptyBasket ( )

testGetAvailableMethodsWithAlreadySelectedCode() public method

Provide twice the same delivery code.

testGetAvailableMethodsWithDisabledDelivery() public method

Provide a delivery method that require an address but none is provided.

testGetAvailableMethodsWithEmptyBasket() public method

Test the getAvailableMethods methods with an empty basket provided.

testGetAvailableMethodsWithFilledBasket() public method

Test the getAvailableMethods methods with a product provided but no address and no related delivery methods.

testGetAvailableMethodsWithRequiredAddressDelivery() public method

Provide a delivery method that require an address but none is provided.

testGetAvailableMethodsWithUncoveredCountry() public method

Try to fetch a delivery not having a handled country.

testGetAvailableMethodsWithUndefinedCode() public method

Try to fetch a delivery based on an undefined code.

testGetAvailableMethodsWithoutBasket() public method

Test the getAvailableMethods methods with no basket nor address provided.

testNonExistentProduct() public method