本文整理汇总了PHP中CakeTestCase::setup方法的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestCase::setup方法的具体用法?PHP CakeTestCase::setup怎么用?PHP CakeTestCase::setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CakeTestCase
的用法示例。
在下文中一共展示了CakeTestCase::setup方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
/**
* startTest
*
* @return void
**/
function setup()
{
parent::setup();
$this->_path = APP . 'plugins' . DS . 'api_generator';
$this->_testAppPath = dirname(dirname(dirname(__FILE__))) . DS . 'test_app' . DS;
Configure::write('ApiGenerator.filePath', $this->_path);
$this->ApiPackage = ClassRegistry::init('ApiPackage');
}
示例2: setup
/**
* setup
*
* @return void
**/
function setup()
{
parent::setup();
$this->_pluginPath = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
$controller = new Controller();
$view = new View($controller);
$view->set('basePath', $this->_pluginPath);
$this->ApiDoc = new ApiDocHelper($view);
Router::reload();
Router::parse('/');
}
示例3: setup
public function setup()
{
parent::setup();
if (!CakePlugin::loaded('Search')) {
try {
CakePlugin::load('Search');
} catch (MissingPluginException $e) {
$this->markTestSkipped('Search plugin not available');
}
}
}
示例4: setup
/**
* setup method
*
* @return void
*/
public function setup()
{
parent::setup();
$out = $this->getMock('ConsoleOutput', array(), array(), '', false);
$in = $this->getMock('ConsoleInput', array(), array(), '', false);
$this->Task = $this->getMock('TestTask', array('in', 'err', 'createFile', '_stop', 'isLoadableClass'), array($out, $out, $in));
$this->Task->name = 'Test';
$this->Task->Template = new TemplateTask($out, $out, $in);
}
示例5: setup
/**
* setUp method
*
* @return void
*/
public function setup()
{
parent::setup();
Configure::write('Session', array('defaults' => 'php', 'cookie' => 'cakephp', 'timeout' => 120, 'cookieTimeout' => 120, 'ini' => array()));
TestCakeSession::init();
}
示例6: setup
public function setup()
{
parent::setup();
$this->Subject = new CrudSubject(array('action' => 'index'));
}
示例7: setUp
/**
* setup method
*
* @return void
*/
public function setUp()
{
parent::setup();
$this->_appEncoding = Configure::read('App.encoding');
}
示例8: setUp
/**
* setup method
*
* @access public
* @return void
*/
function setUp()
{
parent::setup();
$this->_appEncoding = Configure::read('App.encoding');
Configure::write('App.encoding', 'UTF-8');
}
示例9: setup
/**
* setup
*
* @return void
*/
function setup()
{
parent::setup();
$this->path = TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'config' . DS;
}
示例10: setup
/**
* setup
*
* @return void
*/
public function setup()
{
parent::setup();
$this->path = CAKE . 'Test' . DS . 'test_app' . DS . 'Config' . DS;
}
示例11: setUp
/**
* setUp method
*
* @return void
*/
public function setUp() {
parent::setup();
Configure::write('debug', 2);
Configure::write('log', false);
}
示例12: setup
/**
* setup
*
* @return void
**/
function setup()
{
parent::setup();
$this->Model = ClassRegistry::init('ApiGeneratorAppTestModel');
}
示例13: setup
public function setup()
{
parent::setup();
include __DIR__ . '/../../../Config/bootstrap.php';
}