Source of file ShippingEstimatorTest.php
Size: 0,563 Bytes - Last Modified: 2021-12-23T10:55:58+00:00
/var/www/docs.ssmods.com/process/src/tests/ShippingEstimatorTest.php
12345678910111213141516171819202122 | <?php class ShippingEstimatorTest extends SapphireTest{ static $fixture_file = array( 'shop_shippingframework/tests/fixtures/TableShippingMethod.yml', //'shop/tests/fixtures/Addresses.yml' ); function testGetEstimates(){ $address = new Address(); $package = new ShippingPackage(2); $estimator = new ShippingEstimator($package, $address); $options = $estimator->getShippingMethods(); $this->assertNotNull($options, "options found"); $estimates = $estimator->getEstimates(); $this->assertNotNull($estimates, "estimates found"); } } |