Exemple #1
0
 /**
  * testGetShippingMethods
  *
  * @return void
  * @see    ____func_see____
  * @since  1.0.0
  */
 public function testGetShippingMethods()
 {
     $processor = new XLite\Module\CDev\USPS\Model\Shipping\Processor\USPS();
     $methods = $processor->getShippingMethods();
     $this->assertTrue(is_array($methods), 'getShippingMethods() must return an array');
     foreach ($methods as $method) {
         $this->assertTrue($method instanceof \XLite\Model\Shipping\Method, 'getShippingMethods() must return an array of \\XLite\\Model\\Shipping\\Method instances');
         $this->assertEquals('usps', $method->getProcessor(), 'getShippingMethods() returned methods of other processor');
     }
 }