本文整理汇总了PHP中CroogoTestCase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP CroogoTestCase::setUp方法的具体用法?PHP CroogoTestCase::setUp怎么用?PHP CroogoTestCase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CroogoTestCase
的用法示例。
在下文中一共展示了CroogoTestCase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
parent::setUp();
App::build(array('Plugin' => array(CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)), App::PREPEND);
$this->CroogoPlugin = $this->getMock('CroogoPlugin', array('_writeSetting', 'needMigration'));
$this->_mapping = array(1346748762 => array('version' => 1346748762, 'name' => '1346748762_first', 'class' => 'First', 'type' => 'app', 'migrated' => '2012-09-04 10:52:42'), 1346748933 => array('version' => 1346748933, 'name' => '1346748933_addstatus', 'class' => 'AddStatus', 'type' => 'app', 'migrated' => '2012-09-04 10:55:33'));
}
示例2: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
$Folder = new Folder(APP . 'Plugin' . DS . 'Example');
$Folder->copy(TESTS . 'test_app' . DS . 'Plugin' . DS . 'Example');
$this->Setting = ClassRegistry::init('Settings.Setting');
}
示例3: setUp
public function setUp()
{
parent::setUp();
$this->View = new View(null);
$this->AppHelper = new AppHelper($this->View);
$this->AppHelper->request = new CakeRequest(null, false);
}
示例4: setUp
public function setUp()
{
$this->FileManager = new FileManager(false, null, null, null);
$this->__testAppPath = CakePlugin::path('FileManager') . 'Test' . DS . 'test_app' . DS;
$this->__setFilePathsForTests();
parent::setUp();
}
示例5: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
$Folder = new Folder(APP . 'Plugin' . DS . 'Example');
$Folder->copy(CakePlugin::path('Croogo') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'Example');
$this->Setting = ClassRegistry::init('Settings.Setting');
}
示例6: setUp
public function setUp()
{
parent::setUp();
$this->loadFixtures('Trackable');
$this->model = ClassRegistry::init(array('class' => 'TestModel', 'alias' => 'TestModel', 'table' => 'trackables'));
$this->model->Behaviors->attach('Croogo.Trackable');
}
示例7: setUp
public function setUp()
{
parent::setUp();
$this->_level = Configure::read('Comment.level');
Configure::write('Comment.level', 10);
$this->Comment = ClassRegistry::init('Comments.Comment');
$this->_record = $this->Comment->findById(1);
}
示例8: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->OrderRecord = ClassRegistry::init('OrderRecord');
$this->OrderRecord->Behaviors->attach('Ordered', array('field' => 'weight', 'foreign_key' => null));
$this->defaultPrefix = Configure::read('Cache.defaultPrefix');
$this->Block = ClassRegistry::init('Blocks.Block');
}
示例9: setUp
/**
* setUp
*/
public function setUp()
{
parent::setUp();
$request = $this->getMock('CakeRequest');
$response = $this->getMock('CakeResponse');
$this->View = new View(new TheNodesTestController($request, $response));
$this->Nodes = new NodesHelper($this->View);
}
示例10: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->User = ClassRegistry::init('Users.User');
$this->User->Behaviors->unload('Acl');
$this->User->Behaviors->unload('Searchable');
$this->defaultPrefix = Configure::read('Cache.defaultPrefix');
}
示例11: setUp
public function setUp()
{
parent::setUp();
CakePlugin::load('Translate');
$this->View = new View(null);
$this->AppHelper = new CroogoAppHelper($this->View);
$this->AppHelper->request = new CakeRequest(null, false);
}
示例12: setUp
public function setUp()
{
parent::setUp();
CakePlugin::load('Translate', array('bootstrap' => true));
$this->View = new View(null);
$this->AppHelper = new AppHelper($this->View);
$this->AppHelper->request = new CakeRequest(null, false);
}
示例13: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->Node = ClassRegistry::init('Nodes.Node');
if (!CakePlugin::loaded('Translate')) {
CakePlugin::load('Translate');
}
$this->Node->Behaviors->attach('Translate.CroogoTranslate', array('fields' => array('title' => 'titleTranslation')));
}
示例14: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
App::build(array('Plugin' => array(CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS), 'View' => array(CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'View' . DS)), App::PREPEND);
$this->testPlugin = CakePlugin::path('Extensions') . 'Test' . DS . 'test_files' . DS . 'example_plugin.zip';
$this->testTheme = CakePlugin::path('Extensions') . 'Test' . DS . 'test_files' . DS . 'example_theme.zip';
$this->CroogoComposer = new CroogoComposer();
$this->CroogoComposer->appPath = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS;
}
示例15: setUp
/**
* setUp
*/
public function setUp()
{
parent::setUp();
$this->ComponentCollection = new ComponentCollection();
$request = $this->getMock('CakeRequest');
$response = $this->getMock('CakeResponse');
$this->View = new View(new TheTaxonomyTestController($request, $response));
$this->Taxonomies = new TaxonomiesHelper($this->View);
}