Example #1
0
 public function testGetHeaderTextNew()
 {
     Mage::unregister('current_channel');
     Mage::register('current_channel', new Varien_Object());
     $channeltypeMock = $this->mockModel('xcom_channelgroup/config_channeltype');
     $channeltypeMock->expects($this->once())->method('getChannelType')->will($this->returnValue(new Varien_Object(array('title' => 'Test eBay'))));
     $this->assertEquals("New \"Test eBay\" Channel", $this->object->getHeaderText());
 }