Skip to content

Instantly share code, notes, and snippets.

@tuongaz
Created September 19, 2013 01:47
Show Gist options
  • Save tuongaz/6618164 to your computer and use it in GitHub Desktop.
Save tuongaz/6618164 to your computer and use it in GitHub Desktop.
Sample of queue test
<?php
/**
* Error reporting
*/
error_reporting(E_ALL | E_STRICT);
/**
* Compilation includes configuration file
*/
define('MAGENTO_ROOT', '../share/magento');
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
require_once $mageFilename;
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
Mage::app();
$helper = Mage::helper('priceline_queue');
$task = $helper->createTask('order_submit', array('order_id' => 234111));
$helper->addTask('order', $task);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment