Skip to content

Instantly share code, notes, and snippets.

View inspiran's full-sized avatar

Daniel Kucharski inspiran

View GitHub Profile
public function testSalesOrderCreate()
{
$salesOrderService = $this->getKernel()->getContainer()->get('vespolina.order_document');
$salesOrder = $salesOrderService->createOrder('default_b2c');
$salesOrderItem1 = $salesOrderService->createItem($salesOrder);
$productA = $this->getMockForAbstractClass('Vespolina\ProductBundle\Model\Product');
$productB = $this->getMockForAbstractClass('Vespolina\ProductBundle\Model\Product');
@inspiran
inspiran / gist:913426
Created April 11, 2011 12:22
github error
vespolina@server:/var/www/vhosts/vespolina.org/httpdocs/vespolina-site# git push origin
Enter passphrase for key '/home/vespolina/.ssh/id_rsa':
Counting objects: 170, done.
Delta compression using up to 8 threads.
fatal: unable to create thread: Resource temporarily unavailable
error: pack-objects died with strange error
//Determine how the price will be calculated
$pricingSetConfiguration->addPricingExecutionStep(
new SetPricingElementFromContainerValue(
array('container' => 'net_value',
'pricing_element' => 'net_value')));
$pricingSetConfiguration->addPricingExecutionStep(
new SetValue(
array('container' => 'packaging_cost_factor',
'value' => '0.05')));