public function setUp()
 {
     parent::setUp();
     $this->test = new DiamondController(new Diamond());
     $this->setupLayout($this->test);
     $this->layout = $this->getLayout($this->test);
 }
 public function setUp()
 {
     parent::setUp();
     $this->_gateway = new Users_Model_UserGateway();
     $this->_installModule('pages');
     $this->_installModule('users');
 }
 /** Initialize tests */
 public function setUp()
 {
     $this->enabledModules = array('javauploaddownload');
     $this->_daos = array('Item');
     $this->_models = array('Item', 'User');
     parent::setUp();
 }
 /**
  * setUp
  *
  * @author   Jun Nishikawa <*****@*****.**>
  * @return   void
  */
 public function setUp()
 {
     Configure::write('debug', 0);
     parent::setUp();
     $this->InstallController = $this->generate('Install.Install', array('components' => array('Session')));
     $this->controller->plugin = 'Install';
 }
示例#5
0
 function tearDown()
 {
     Cache::clear(false, 'default');
     ConnectionManager::drop('cacher');
     unset($this->CacheData);
     parent::tearDown();
 }
示例#6
0
 protected function tearDown()
 {
     if ($this->count()) {
         ControllerTestCase::migrationDown('subscriptions');
         ControllerTestCase::migrationDown('payments');
     }
 }
示例#7
0
 public function setUp()
 {
     parent::setUp();
     $this->_db = Zend_Registry::get('db');
     $this->_str = 'notes @content 12:01 dfsa 1:00 df 10:01 badtime12:01 num1234';
     $this->_input = new Lds_Helper_MainInput($this->_str);
 }
 public function setUp()
 {
     parent::setUp();
     $this->Admin = ClassRegistry::init('Admin');
     $this->UsersController = new UsersController();
     $this->UsersController->constructClasses();
 }
 public function setUp()
 {
     PHPUnit_Framework_Error_Notice::$enabled = FALSE;
     parent::setUp();
     $this->ProductCredit = ClassRegistry::init('ProductCredit');
     //$this->OrdersController->startup($this->Controller);
 }
 public function setUp()
 {
     parent::setUp();
     $this->helper = Zend_Controller_Action_HelperBroker::getStaticHelper('breadcrumbs');
     $this->navigation = Zend_Registry::get('Opus_View')->navigation();
     $this->helper->setNavigation($this->navigation);
 }
 public function tearDown()
 {
     if ($this->createsModels) {
         $this->deleteNewModels();
     }
     parent::tearDown();
 }
 protected function tearDown()
 {
     if (!is_null($this->config)) {
         Zend_Registry::set('Zend_Config', $this->config);
     }
     // Cleanup of Log File
     $config = Zend_Registry::get('Zend_Config');
     $filename = $config->workspacePath . DIRECTORY_SEPARATOR . 'log' . DIRECTORY_SEPARATOR . 'opus_consistency-check.log';
     if (file_exists($filename)) {
         unlink($filename);
     }
     // Cleanup of Lock File
     if (file_exists($filename . '.lock')) {
         unlink($filename . '.lock');
     }
     // Cleanup of Jobs Table
     $jobs = Opus_Job::getByLabels(array(Opus_Job_Worker_ConsistencyCheck::LABEL));
     foreach ($jobs as $job) {
         try {
             $job->delete();
         } catch (Exception $e) {
             // ignore
         }
     }
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $this->test = new BowlingGameController(new BowlingGame());
     $this->setupLayout($this->test);
     $this->layout = $this->getLayout($this->test);
 }
 public function setUp()
 {
     parent::setUp();
     $this->_validator = new Application_Form_Validate_AtLeastOneNotEmpty();
     $this->_validator->addElement('name');
     $this->_validator->addElement('number');
 }
示例#15
0
 public function tearDown()
 {
     foreach ($this->localTestFiles as $file) {
         unlink($this->folder . '/' . $file);
     }
     parent::tearDown();
 }
示例#16
0
 function setUp()
 {
     parent::setUp();
     $this->path = APPLICATION_PATH . "/../tests/fixtures/quiz1";
     $this->getFrontController()->setParam('xml_path', $this->path);
     //Override for our tests
 }
示例#17
0
 public function setUp()
 {
     parent::setUp();
     $spreadsheetPersistence = new ZC_SpreadsheetAdapter($this->testuser, $this->testpass, $this->spreadsheetKey);
     $geocodingService = new ZC_GeocodingAdapter('');
     $this->personMapper = new ZC_PersonMapper($geocodingService, $spreadsheetPersistence);
 }
示例#18
0
 /** init tests */
 public function setUp()
 {
     $this->setupDatabase(array('default'));
     $this->_models = array('User', 'Community', 'Group', 'Feed', 'NewUserInvitation', 'PendingUser');
     $this->_daos = array('User');
     parent::setUp();
 }
示例#19
0
 public function setUp()
 {
     parent::setUpWithEnv('production');
     $this->assertSecurityConfigured();
     $this->_helper = new Application_View_Helper_AdminMenu();
     $this->_helper->setView(Zend_Registry::get('Opus_View'));
 }
示例#20
0
 public function setUp()
 {
     parent::setUp();
     $this->_model = Application_Model_Factory::getModel($this->_targetServer);
     $this->_adapter = new Zend_Http_Client_Adapter_Test();
     $this->_model->getHttpClient()->setAdapter($this->_adapter);
 }
 /** set up tests */
 public function setUp()
 {
     $this->setupDatabase(array('default', 'adminUser'));
     $this->_models = array('User', 'Item');
     $this->enabledModules = array('scheduler', 'remoteprocessing', 'api');
     parent::setUp();
 }
 public function setUp()
 {
     parent::setUp();
     $this->Migrates = $this->generate('MktMigrate.Migrates', array('models' => array(), 'components' => array('Session', 'RequestHandler', 'Auth'), 'helpers' => array('ScriptCombiner')));
     $_SERVER['PHP_AUTH_USER'] = Configure::read('MktMigrate.login');
     $_SERVER['PHP_AUTH_PW'] = Configure::read('MktMigrate.pass');
 }
示例#23
0
 /** init tests */
 public function setUp()
 {
     $this->setupDatabase(array('default'));
     $this->_models = array('Community', 'User', 'Folder', 'Item', 'Folderpolicyuser', 'Itempolicyuser');
     $this->_daos = array();
     parent::setUp();
 }
示例#24
0
 /** init tests */
 public function setUp()
 {
     $this->setupDatabase(array('default'));
     $this->_models = array('User');
     $this->_daos = array('User');
     parent::setUp();
 }
 public function setUp()
 {
     parent::setUp();
     $this->test = new DashboardController();
     $this->setupLayout($this->test);
     $this->layout = $this->getLayout($this->test);
 }
示例#26
0
 /** Setup. */
 public function setUp()
 {
     $this->enabledModules = array('api', 'scheduler', $this->moduleName);
     $this->_models = array('Assetstore', 'Community', 'Setting', 'User');
     $this->setupDatabase(array('default'));
     ControllerTestCase::setUp();
 }
示例#27
0
 /** set up tests */
 public function setUp()
 {
     $this->setupDatabase(array('default'));
     $this->_models = array('User', 'Item', 'Bitstream');
     $this->_components = array('Export', 'Upload');
     parent::setUp();
 }
示例#28
0
 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     CakeSession::clear();
     CakeSession::destroy();
     ClassRegistry::flush();
 }
 /** init tests */
 public function setUp()
 {
     $this->enabledModules = array('api');
     $this->_daos = array('Activedownload');
     $this->_models = array('Activedownload', 'Folder', 'Item', 'User');
     parent::setUp();
 }
示例#30
0
 protected function tearDown()
 {
     if ($this->count()) {
         ControllerTestCase::migrationDown('blog');
         ControllerTestCase::migrationDown('comments');
         ControllerTestCase::migrationDown('categories');
     }
 }