SilverCommerce\OrdersAdmin\Tests\EstimateTest
Synopsis
class EstimateTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'OrdersScaffold.yml';
- // methods
- public void testConvertToInvoice()
- public void testIsDeliverable()
- public void testLocationDetails()
- public void testItemSummary()
- public void testTotalCalculations()
- public void testTaxCalculations()
- public void testCurrencyCalculations()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
—
string
Add some scaffold order records
Methods
public
- testConvertToInvoice() — Test that an estimate converts to invoice correctly
- testCurrencyCalculations() — test that functions for calculating monitary info on an order are correct (such as tax, total, etc)
- testIsDeliverable() — Test that an estimate returns the correct deliverable status
- testItemSummary() — test that generation of the summary and summary HTML work as expected.
- testLocationDetails() — Test that the country is retrieved correctly and that billing and delivery addresses return as expected
- testTaxCalculations() — test that functions for calculating tax monitary info on an order are correct
- testTotalCalculations() — test that functions for calculating total amounts (such as) total items, total weight, etc.