SilverCommerce\Postage\Tests\PostageTypeTest
Test functionality of provided postage types
Synopsis
class PostageTypeTest
extends SapphireTest
{
- // constants
- const POSTAGE_UK_NAME = "UK";
- const POSTAGE_GLOBAL_NAME = "Global";
- // members
- protected static string $fixture_file = 'PostageTypes.yml';
- protected static array $extra_dataobjects = ;
- // methods
- public void setUp()
- public void testFlatRate()
- public void testWeightBased()
- public void testPriceBased()
- public void testQuantityBased()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Constants
Name | Value |
---|---|
POSTAGE_UK_NAME | "UK" |
POSTAGE_GLOBAL_NAME | "Global" |
Members
protected
- $extra_dataobjects
- $fixture_file
—
string
Add scaffold postage types
Methods
public
- setUp()
- testFlatRate() — Test possible postage results for flat rate shipping
- testPriceBased() — Test possible postage results for flat rate shipping
- testQuantityBased() — Test possible postage results for flat rate shipping
- testWeightBased() — Test possible postage results for flat rate shipping