コード例 #1
0
ファイル: base.test.php プロジェクト: rcaravita/jodeljodel
 function start()
 {
     parent::start();
     if (in_array('plugin.media.song', $this->fixtures)) {
         $this->loadFixtures('Song');
     }
 }
コード例 #2
0
ファイル: user.test.php プロジェクト: Theaxiom/chaw-source
 function start()
 {
     parent::start();
     Configure::write('Content', array('base' => TMP . 'tests' . DS, 'git' => TMP . 'tests' . DS . 'git' . DS, 'svn' => TMP . 'tests' . DS . 'svn' . DS));
     $this->AuthorizedKeys = new File(TMP . 'tests/git/repo/.ssh/authorized_keys', true);
     $this->User =& ClassRegistry::init('User');
 }
コード例 #3
0
 /**
  * @return  void
  */
 public function start()
 {
     parent::start();
     $this->Metadatum =& ClassRegistry::init('Metadata.Metadatum');
     $this->MetaThing =& ClassRegistry::init('Metadata.MetaThing');
     $this->MetaThing->Behaviors->attach('Metadata.Metadata', array('validate' => array('garbage' => array(array('rule' => 'isGarbage', 'message' => 'Must be garbage'), array('rule' => array('isGarbageLength', 7), 'message' => 'Must be garbage length 7')), 'empty' => array('rule' => 'isGarbage', 'message' => 'Must be garbage', 'allowEmpty' => true), 'postal' => array('rule' => 'postal', 'message' => 'Must be valid postal code'), 'dimensions' => array('inches' => array('height' => array(array('rule' => 'numeric', 'message' => 'Must be numeric'), array('rule' => array('decimal', 2), 'message' => 'Must be decimal')), 'width' => array('rule' => 'numeric', 'message' => 'Must be numeric'), 'depth' => array('rule' => 'numeric', 'message' => 'Must be numeric'), 'girth' => array('rule' => 'numeric', 'message' => 'Must be numeric', 'last' => true))))));
 }
コード例 #4
0
ファイル: chaw.test.php プロジェクト: Theaxiom/chaw-source
 function start()
 {
     parent::start();
     $this->Chaw = new TestChaw();
     $this->Chaw->Html = new HtmlHelper();
     $this->Chaw->params = array('url' => array('url' => '/', 'ext' => 'html'));
     $this->Chaw->webroot = '/';
 }
コード例 #5
0
 function start()
 {
     parent::start();
     $this->AuthwellUser = ClassRegistry::init('Authwell.AuthwellUser');
     $this->RecordObj = new AuthwellUserRecord($this->AuthwellUser);
     $this->RoleRecordObj = new AuthwellRoleRecord($this->AuthwellUser->AuthwellRole);
     $this->PrivRecordObj = new AuthwellPrivilegeRecord($this->AuthwellUser->AuthwellRole->AuthwellPrivilege);
 }
コード例 #6
0
 function start()
 {
     parent::start();
     $this->JsValidate =& ClassRegistry::init('JsValidate.JsValidate');
     $this->JsValidate->backupValidate = $this->JsValidate->validate;
     $this->JsValidate->validate = array();
     $this->Validation = new ValidationHelper();
     $this->Validation->Javascript = new JavascriptHelper();
 }
コード例 #7
0
 function start()
 {
     parent::start();
     $this->JsValidate =& ClassRegistry::init('JsValidate');
     $this->JsValidate->backupValidate = $this->JsValidate->validate;
     $this->JsValidate->validate = array();
     $this->Validation = new ValidationHelper();
     $this->Validation->Js = new JsHelper();
     $this->Validation->Js->JqueryEngine = new JqueryEngineHelper();
     $this->Validation->Html = new HtmlHelper();
 }
コード例 #8
0
 function start()
 {
     $defaults = array('browser' => '*firefox', 'url' => 'http://localhost:8888/', 'host' => 'localhost', 'port' => 4444, 'speed' => false);
     Configure::load('selenium');
     $settings = Configure::read('Selenium');
     if (!is_array($settings)) {
         $settings = array();
     }
     $shell = array('browser' => $this->_getBrowser(), 'url' => $this->_getUrl(), 'host' => $this->_getHost(), 'port' => 4444, 'speed' => $this->_getSpeed());
     $shell = array_filter($shell);
     $this->settings = array_merge($defaults, $settings, $shell);
     return parent::start();
 }
コード例 #9
0
 function start()
 {
     parent::start();
     $this->Portfolio = ClassRegistry::init('Portfolio');
     $this->Item = ClassRegistry::init('Item');
     $this->Syfile = ClassRegistry::init('Syfile');
     $this->Image = ClassRegistry::init('Image');
     $this->Message = ClassRegistry::init('Message');
     $this->Thread = ClassRegistry::init('Thread');
     $this->Portfolio->Behaviors->attach('LazyLoader');
     $this->Item->Behaviors->attach('LazyLoader');
     $this->Syfile->Behaviors->attach('LazyLoader');
     $this->Image->Behaviors->attach('LazyLoader');
     $this->Message->Behaviors->attach('LazyLoader');
     $this->Thread->Behaviors->attach('LazyLoader');
     $this->Image->bind('Syfile', array('hasOne'));
 }
コード例 #10
0
 /**
  * Make sure all fixtures tables are being created
  *
  * @access public
  */
 function start()
 {
     $this->db->simulate = false;
     parent::start();
     $this->db->simulate = true;
 }
コード例 #11
0
 function start()
 {
     parent::start();
     $this->SimpleRecord = ClassRegistry::init('SimpleRecord');
 }
コード例 #12
0
 function start()
 {
     parent::start();
     $this->Post = new MergePost();
     $this->Topic = new MergeTopic();
 }
コード例 #13
0
 /**
  * start
  *
  * @retun void
  * @access public
  */
 function start()
 {
     parent::start();
     $this->EstadoBrasileiro = new EstadoBrasileiro();
 }
コード例 #14
0
 function start()
 {
     parent::start();
     $this->PageTest = ClassRegistry::init('Page');
 }
コード例 #15
0
ファイル: suite.test.php プロジェクト: erlendfh/Bromine
 function start()
 {
     parent::start();
     $this->Suite = new TestSuite();
 }
コード例 #16
0
ファイル: command.test.php プロジェクト: erlendfh/Bromine
 function start()
 {
     parent::start();
     $this->Command = new TestCommand();
 }
コード例 #17
0
ファイル: menu.test.php プロジェクト: erlendfh/Bromine
 function start()
 {
     parent::start();
     $this->Menu = new TestMenu();
 }
コード例 #18
0
 function start()
 {
     parent::start();
     $this->AmfCallback = new AmfCallback(new stdClass());
 }
コード例 #19
0
ファイル: model.test.php プロジェクト: kaz0636/openflp
 function start()
 {
     parent::start();
     $this->debug = Configure::read('debug');
     Configure::write('debug', 2);
 }
コード例 #20
0
 function start()
 {
     parent::start();
     $this->HaberesDescuento = new TestHaberesDescuento();
 }
コード例 #21
0
 function start()
 {
     parent::start();
     $this->TestModel = new Meiomodel();
     $this->MeioDuplicate =& $this->TestModel->Behaviors->MeioDuplicate;
 }
コード例 #22
0
ファイル: find.test.php プロジェクト: hardsshah/find
 function start()
 {
     parent::start();
     $this->Post =& ClassRegistry::init('Post');
 }
コード例 #23
0
ファイル: empleado.test.php プロジェクト: robertyco/cymremun
 function start()
 {
     parent::start();
     $this->Empleado = new TestEmpleado();
 }
コード例 #24
0
ファイル: detail.test.php プロジェクト: ketanshah79/users
 /**
  * start
  *
  * @return void
  */
 public function start()
 {
     Configure::write('App.UserClass', null);
     parent::start();
     $this->Detail =& ClassRegistry::init('Users.Detail');
 }
コード例 #25
0
ファイル: user.test.php プロジェクト: erlendfh/Bromine
 function start()
 {
     parent::start();
     $this->User = new TestUser();
 }
コード例 #26
0
 function start()
 {
     parent::start();
     $this->SimpleLogType = ClassRegistry::init('SimpleLogType');
 }
コード例 #27
0
 /**
  * start method
  *
  * @return void
  * @access public
  */
 function start()
 {
     parent::start();
     Configure::write('Security.salt', 'JfIxfs2guVoUubWDYhG93b0qyJfIxfs2guwvniR2G0FgaC9mi');
 }
コード例 #28
0
ファイル: empresa.test.php プロジェクト: robertyco/cymremun
 function start()
 {
     parent::start();
     $this->Empresa = new TestEmpresa();
 }
コード例 #29
0
 /**
  * @return  void
  */
 public function start()
 {
     parent::start();
     $this->Thing = ClassRegistry::init('Permissionable.Thing');
 }
コード例 #30
0
 /**
  * Initialize the Testcase
  *
  */
 public function start()
 {
     parent::start();
     $this->QueuedTask =& ClassRegistry::init('TestQueuedTask');
 }