SilverCommerce\Postage\Tests\PostageExtensionTest
Test functionality of postage extension
Synopsis
class PostageExtensionTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'PostageExtensionTest.yml';
- protected static array $extra_dataobjects = ;
- // methods
- public void setUp()
- protected void createPostageOption()
- public void testSetGetPostage()
- public void testClearPostage()
- public void testPostageDetails()
- public void testPostageTotal()
- public void testPostageTaxPrice()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $fixture_file
Methods
protected
public
- setUp()
- testClearPostage() — Test that clearing postage emptys relevent data
- testPostageDetails() — Test the postage details are correctly rendered
- testPostageTaxPrice() — Test the postage tax price is correct
- testPostageTotal() — Test the postage total is correct
- testSetGetPostage() — Test possible postage results for flat rate shipping