Created
September 19, 2013 01:47
-
-
Save tuongaz/6618164 to your computer and use it in GitHub Desktop.
Sample of queue test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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