Inheritance: implements Sonata\Component\Product\DeliveryInterface
Ejemplo n.º 1
0
 public function testGetStatusList()
 {
     $statusList = array(ServiceDeliveryInterface::STATUS_OPEN => 'status_open', ServiceDeliveryInterface::STATUS_PENDING => 'status_pending', ServiceDeliveryInterface::STATUS_SENT => 'status_sent', ServiceDeliveryInterface::STATUS_CANCELLED => 'status_cancelled', ServiceDeliveryInterface::STATUS_COMPLETED => 'status_completed', ServiceDeliveryInterface::STATUS_RETURNED => 'status_returned');
     $this->assertEquals($statusList, BaseDelivery::getStatusList());
     $this->assertEquals($statusList, BaseServiceDelivery::getStatusList());
 }
Ejemplo n.º 2
0
 /**
  * @static
  *
  * @return array
  */
 public static function getDeliveryStatusList()
 {
     return BaseDelivery::getStatusList();
 }