SilverCommerce\Postage\Tests\PostageFormTest
Synopsis
class PostageFormTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'PostageFormTest.yml';
- protected static array $extra_dataobjects = ;
- // methods
- public void setUp()
- public void testDropdowns()
- public void testFixed()
- public void testNoPostage()
- public void testObjectChanged()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $extra_dataobjects
- $fixture_file
Methods
public
- setUp()
- testDropdowns() — Test that the form generates dropdowns when no country provided
- testFixed() — Test that the form generates a correct list of postage
- testNoPostage() — Test that the form generates a no postage error
- testObjectChanged() — Test that the form updated the object with the new postage