PHP Class Sonata\tests\PriceBundle\DependencyInjection\SonataPriceExtensionTest

Author: Hugo Briand ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
testConfiguration ( ) Tests if the configuration is well parsed & parameters are well set.
testCurrencyRequired ( ) Asserts that an InvalidConfigurationException is thrown when not providing currency parameter.

Protected Methods

Method Description
getDefaultConfig ( ) : array Gets the configuration as an array.

Method Details

getDefaultConfig() protected method

Gets the configuration as an array.
protected getDefaultConfig ( ) : array
return array

testConfiguration() public method

Tests if the configuration is well parsed & parameters are well set.
public testConfiguration ( )

testCurrencyRequired() public method

Asserts that an InvalidConfigurationException is thrown when not providing currency parameter.