예제 #1
0
 /**
  * Check that a task can be added to the queue correctly
  * 
  * @return void
  * 
  * @test
  */
 public function testLoadQueue()
 {
     //check that the queue object is correct
     $_queue = $this->_helper->getQueue('default');
     $this->assertInstanceOf('Lilmuckers_Queue_Model_Queue', $_queue, 'Check that the queue object is instantiated');
     //ensure the name on the queue is correct
     $this->assertEquals('default', $_queue->getName(), 'Check that the queue name was set to \'default\'');
 }
예제 #2
0
 /**
  * Setup function, initialise the helper object
  *
  * @return void
  */
 protected function setUp()
 {
     $this->_helper = Mage::helper('lilqueue');
     $this->_adapter = $this->_helper->getAdapter();
     $this->_queue = $this->_helper->getQueue('unit_tests');
 }