Пример #1
0
 protected function tearDown()
 {
     if (!is_null($this->_httpXRequestedWith)) {
         $_SERVER['HTTP_X_REQUESTED_WITH'] = $this->_httpXRequestedWith;
     }
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $post = array('code' => 'test data', 'subject' => 'test data2', 'sender_email' => '*****@*****.**', 'sender_name' => 'Test Sender Name', 'text' => 'Template Content');
     $this->getRequest()->setPost($post);
     $this->_model = Mage::getModel('Mage_Newsletter_Model_Template');
 }
Пример #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->getRequest()->setParam('type', 'Mage_Cms_Block_Widget_Page_Link');
     $this->getRequest()->setParam('package_theme', 'default-default');
 }
Пример #4
0
 public function setUp()
 {
     parent::setUp();
     $this->_baseControllerUrl = 'http://localhost/index.php/backend/admin/customer/';
 }
 public function setUp()
 {
     parent::setUp();
     $this->_model = Mage::getModel('Mage_Newsletter_Model_Template');
 }