public function setUp()
 {
     parent::setUp();
     $this->package = (require __DIR__ . '/../../Fixture/Package.php');
     $this->order = $this->getApplicationContext()->getComponent('\\FS\\Components\\Order\\ShoppingOrder')->setWcOrder(\FS\Test\Helper\FlagshipShippingWooCommerceFactory::createSimpleOrder());
     foreach ($this->package['contents'] as $key => $package) {
         $this->package['contents'][$key]['data'] = \FS\Test\Helper\FlagshipShippingWooCommerceFactory::createSimpleProduct();
     }
 }
 public function setUp()
 {
     parent::setUp();
     $this->package = (require __DIR__ . '/../../Fixture/Package.php');
     $this->order = $this->getApplicationContext()->getComponent('\\FS\\Components\\Order\\ShoppingOrder')->setWcOrder(\FS\Test\Helper\FlagshipShippingWooCommerceFactory::createSimpleOrder());
     $this->order->setFlagShipRaw(array('shipment_id' => 1517028, 'tracking_number' => '794631711299', 'price' => array('charges' => array('freight' => 18.9, 'fuel_surcharge' => 1.27), 'subtotal' => 20.17, 'total' => 23.2, 'taxes' => array('gst' => 1.01, 'qst' => 2.02)), 'service' => array('flagship_code' => 'express', 'courier_code' => 'FEDEX_EXPRESS_SAVER', 'courier_desc' => 'Economy', 'courier_name' => 'FedEx', 'transit_time' => null, 'estimated_delivery_date' => null), 'labels' => array('regular' => "https:\\/\\/s3.amazonaws.com\\/waybills\\/201609\\/10e1e80cddbfd3f1f213d364ed7a2c0c\\/reg_794631711299.pdf", 'thermal' => "https:\\/\\/s3.amazonaws.com\\/waybills\\/201609\\/10e1e80cddbfd3f1f213d364ed7a2c0c\\/therm_794631711299.pdf"), 'packages' => array(0 => array('width' => '1', 'height' => '1', 'length' => '1', 'weight' => '2', 'description' => 'Flagship shipping package', 'pin' => '794631711299'))));
     $this->order->getShipment(true);
     foreach ($this->package['contents'] as $key => $package) {
         $this->package['contents'][$key]['data'] = \FS\Test\Helper\FlagshipShippingWooCommerceFactory::createSimpleProduct();
     }
 }