本文整理汇总了PHP中CakeTestCase::start方法的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestCase::start方法的具体用法?PHP CakeTestCase::start怎么用?PHP CakeTestCase::start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CakeTestCase
的用法示例。
在下文中一共展示了CakeTestCase::start方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: start
function start()
{
parent::start();
if (in_array('plugin.media.song', $this->fixtures)) {
$this->loadFixtures('Song');
}
}
示例2: start
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: start
/**
* @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: start
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: start
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: start
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: start
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: start
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: 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'));
}
示例10: start
/**
* Make sure all fixtures tables are being created
*
* @access public
*/
function start()
{
$this->db->simulate = false;
parent::start();
$this->db->simulate = true;
}
示例11: start
function start()
{
parent::start();
$this->SimpleRecord = ClassRegistry::init('SimpleRecord');
}
示例12: start
function start()
{
parent::start();
$this->Post = new MergePost();
$this->Topic = new MergeTopic();
}
示例13: start
/**
* start
*
* @retun void
* @access public
*/
function start()
{
parent::start();
$this->EstadoBrasileiro = new EstadoBrasileiro();
}
示例14: start
function start()
{
parent::start();
$this->PageTest = ClassRegistry::init('Page');
}
示例15: start
function start()
{
parent::start();
$this->Suite = new TestSuite();
}