本文整理汇总了PHP中CakeTestCase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestCase::setUp方法的具体用法?PHP CakeTestCase::setUp怎么用?PHP CakeTestCase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CakeTestCase
的用法示例。
在下文中一共展示了CakeTestCase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
function setUp()
{
parent::setUp();
$this->_pluginPath = App::pluginPath('AssetCompress');
$this->_testPath = $this->_pluginPath . 'Test/test_files/css/';
$this->filter = new TimestampImage();
}
示例2: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
$controller = null;
$this->View = new View($controller);
$this->Rss = new RssHelper($this->View);
}
示例3: setUp
/**
* This function sets up a HttpSocket instance we are going to use for testing
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->HttpSocket = new DigestHttpSocket();
$this->HttpSocket->request['method'] = 'GET';
$this->HttpSocket->request['uri']['path'] = '/';
}
示例4: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$controller = null;
$this->View = $this->getMock('View', array('addScript'), array(&$controller));
$this->Moo = new MootoolsEngineHelper($this->View);
}
示例5: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->Time = new CakeTime();
$this->_systemTimezoneIdentifier = date_default_timezone_get();
Configure::write('Config.language', 'eng');
}
示例6: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->BlogFrameSetting = ClassRegistry::init('Blogs.BlogFrameSetting');
// モデルからビヘイビアをはずす:
$this->BlogFrameSetting->Behaviors->unload('Trackable');
}
示例7: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
Configure::write('Cache.disable', true);
App::build();
App::objects('plugin', null, true);
}
示例8: setUp
/**
* setUp method
*
* Se the request info to something innocuous but valid, link the helper to a view instance
*
* @return void
*/
public function setUp()
{
parent::setUp();
Router::setRequestInfo(array(array('controller' => 'posts', 'action' => 'action'), array('base' => '/', 'webroot' => '/', 'here' => '/posts/action')));
$View = new View();
$this->Menu = new MenuHelper($View);
}
示例9: setUp
/**
* setup test
*
* @return void
*/
public function setUp()
{
$this->out = $this->getMock('ConsoleOutput', array(), array(), '', false);
$this->in = $this->getMock('ConsoleInput', array(), array(), '', false);
$this->Shell = $this->getMock('TranslationsShell', array('in', 'out', 'hr', 'err', '_stop', '_getModels'), array($this->out, $this->out, $this->in));
parent::setUp();
}
示例10: setUp
/**
* setUp
*
* @retun void
* @access public
*/
public function setUp()
{
parent::setUp();
$this->Controller = new Controller(null);
$this->View = new View($this->Controller);
$this->Locale = new LocaleHelper($this->View, array('locale' => 'pt_BR'));
}
示例11: setUp
public function setUp()
{
parent::setUp();
$Controller = new Controller();
$View = new View($Controller);
$this->Tab = new BootstrapTabHelper($View);
}
示例12: setUp
public function setUp()
{
parent::setUp();
$Controller = new Controller();
$View = new View($Controller);
$this->Progress = new ProgressHelper($View);
}
示例13: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->View = new View();
$this->Form = new BoostCakeFormHelper($this->View);
ClassRegistry::addObject('Contact', new Contact());
}
示例14: setUp
/**
* Start test
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->Version = new MigrationVersion(array('connection' => 'test', 'autoinit' => false));
App::build(array('plugins' => CakePlugin::path('Migrations') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS));
Configure::write('Config.language', 'en');
}
示例15: setUp
public function setUp()
{
parent::setUp();
Configure::delete('Ajax');
$this->Controller = new AjaxComponentTestController(new CakeRequest(), new CakeResponse());
$this->Controller->constructClasses();
}