示例#1
0
 public function setup()
 {
     parent::setup();
     $this->controller = $this->generate('Posts', ['components' => ['Paginator', 'Session'], 'models' => ['Post' => ['save']], 'methods' => ['redirect']]);
     $this->controller->autoRender = false;
 }
示例#2
0
 /** Setup function will set test config properties in the Zend_Registry. */
 public function setup()
 {
     parent::setup();
     $testConfigProps = $this->setupAndGetConfig();
     Zend_Registry::set('batchmake_test_config', $testConfigProps);
 }
示例#3
0
 public function setUp()
 {
     parent::setup();
     $this->db = Zend_Registry::get('db');
     $this->projectMapper = new C3op_Projects_ProjectMapper($this->db);
 }