function start() { parent::start(); if (in_array('plugin.media.song', $this->fixtures)) { $this->loadFixtures('Song'); } }
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'); }
/** * @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)))))); }
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 = '/'; }
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); }
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(); }
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(); }
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(); }
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')); }
/** * Make sure all fixtures tables are being created * * @access public */ function start() { $this->db->simulate = false; parent::start(); $this->db->simulate = true; }
function start() { parent::start(); $this->SimpleRecord = ClassRegistry::init('SimpleRecord'); }
function start() { parent::start(); $this->Post = new MergePost(); $this->Topic = new MergeTopic(); }
/** * start * * @retun void * @access public */ function start() { parent::start(); $this->EstadoBrasileiro = new EstadoBrasileiro(); }
function start() { parent::start(); $this->PageTest = ClassRegistry::init('Page'); }
function start() { parent::start(); $this->Suite = new TestSuite(); }
function start() { parent::start(); $this->Command = new TestCommand(); }
function start() { parent::start(); $this->Menu = new TestMenu(); }
function start() { parent::start(); $this->AmfCallback = new AmfCallback(new stdClass()); }
function start() { parent::start(); $this->debug = Configure::read('debug'); Configure::write('debug', 2); }
function start() { parent::start(); $this->HaberesDescuento = new TestHaberesDescuento(); }
function start() { parent::start(); $this->TestModel = new Meiomodel(); $this->MeioDuplicate =& $this->TestModel->Behaviors->MeioDuplicate; }
function start() { parent::start(); $this->Post =& ClassRegistry::init('Post'); }
function start() { parent::start(); $this->Empleado = new TestEmpleado(); }
/** * start * * @return void */ public function start() { Configure::write('App.UserClass', null); parent::start(); $this->Detail =& ClassRegistry::init('Users.Detail'); }
function start() { parent::start(); $this->User = new TestUser(); }
function start() { parent::start(); $this->SimpleLogType = ClassRegistry::init('SimpleLogType'); }
/** * start method * * @return void * @access public */ function start() { parent::start(); Configure::write('Security.salt', 'JfIxfs2guVoUubWDYhG93b0qyJfIxfs2guwvniR2G0FgaC9mi'); }
function start() { parent::start(); $this->Empresa = new TestEmpresa(); }
/** * @return void */ public function start() { parent::start(); $this->Thing = ClassRegistry::init('Permissionable.Thing'); }
/** * Initialize the Testcase * */ public function start() { parent::start(); $this->QueuedTask =& ClassRegistry::init('TestQueuedTask'); }