本文整理汇总了PHP中ControllerTestCase类的典型用法代码示例。如果您正苦于以下问题:PHP ControllerTestCase类的具体用法?PHP ControllerTestCase怎么用?PHP ControllerTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ControllerTestCase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tearDown
protected function tearDown()
{
if ($this->count()) {
ControllerTestCase::migrationDown('subscriptions');
ControllerTestCase::migrationDown('payments');
}
}
开发者ID:shahmaulik,项目名称:zfcore,代码行数:7,代码来源:Test.php
示例2: setUp
/** Setup. */
public function setUp()
{
$this->enabledModules = array('api', 'scheduler', $this->moduleName);
$this->_models = array('Assetstore', 'Community', 'Setting', 'User');
$this->setupDatabase(array('default'));
ControllerTestCase::setUp();
}
开发者ID:josephsnyder,项目名称:Midas,代码行数:8,代码来源:ApiControllerTest.php
示例3: setUp
public function setUp()
{
parent::setUp();
$this->test = new DiamondController(new Diamond());
$this->setupLayout($this->test);
$this->layout = $this->getLayout($this->test);
}
开发者ID:viniciusferreira,项目名称:daily,代码行数:7,代码来源:DiamondControllerTest.php
示例4: setUp
public function setUp()
{
parent::setUp();
$this->_gateway = new Users_Model_UserGateway();
$this->_installModule('pages');
$this->_installModule('users');
}
开发者ID:rantoine,项目名称:AdvisorIllustrator,代码行数:7,代码来源:CreateControllerTest.php
示例5: setUp
/** Initialize tests */
public function setUp()
{
$this->enabledModules = array('javauploaddownload');
$this->_daos = array('Item');
$this->_models = array('Item', 'User');
parent::setUp();
}
开发者ID:josephsnyder,项目名称:Midas,代码行数:8,代码来源:DownloadControllerTest.php
示例6: setUp
/**
* setUp
*
* @author Jun Nishikawa <[email protected]>
* @return void
*/
public function setUp()
{
Configure::write('debug', 0);
parent::setUp();
$this->InstallController = $this->generate('Install.Install', array('components' => array('Session')));
$this->controller->plugin = 'Install';
}
开发者ID:Onasusweb,项目名称:Install,代码行数:13,代码来源:InstallControllerPostgresqlPostInitTest.php
示例7: tearDown
function tearDown()
{
Cache::clear(false, 'default');
ConnectionManager::drop('cacher');
unset($this->CacheData);
parent::tearDown();
}
开发者ID:jeremyharris,项目名称:cacher,代码行数:7,代码来源:CacheBehaviorTest.php
示例8: setUp
public function setUp()
{
parent::setUp();
$this->_db = Zend_Registry::get('db');
$this->_str = 'notes @content 12:01 dfsa 1:00 df 10:01 badtime12:01 num1234';
$this->_input = new Lds_Helper_MainInput($this->_str);
}
开发者ID:sandin,项目名称:iMemo,代码行数:7,代码来源:MainInputTest.php
示例9: setUp
public function setUp()
{
parent::setUp();
$this->Admin = ClassRegistry::init('Admin');
$this->UsersController = new UsersController();
$this->UsersController->constructClasses();
}
开发者ID:MrGrigorev,项目名称:reserva-de-salas,代码行数:7,代码来源:UsersControllerTest.php
示例10: setUp
public function setUp()
{
PHPUnit_Framework_Error_Notice::$enabled = FALSE;
parent::setUp();
$this->ProductCredit = ClassRegistry::init('ProductCredit');
//$this->OrdersController->startup($this->Controller);
}
开发者ID:kameshwariv,项目名称:testexample,代码行数:7,代码来源:MarchKudosUKTest.php
示例11: setUp
public function setUp()
{
parent::setUp();
$this->helper = Zend_Controller_Action_HelperBroker::getStaticHelper('breadcrumbs');
$this->navigation = Zend_Registry::get('Opus_View')->navigation();
$this->helper->setNavigation($this->navigation);
}
开发者ID:belapp,项目名称:opus4-application,代码行数:7,代码来源:BreadcrumbsTest.php
示例12: tearDown
public function tearDown()
{
if ($this->createsModels) {
$this->deleteNewModels();
}
parent::tearDown();
}
开发者ID:belapp,项目名称:opus4-application,代码行数:7,代码来源:CrudControllerTestCase.php
示例13: tearDown
protected function tearDown()
{
if (!is_null($this->config)) {
Zend_Registry::set('Zend_Config', $this->config);
}
// Cleanup of Log File
$config = Zend_Registry::get('Zend_Config');
$filename = $config->workspacePath . DIRECTORY_SEPARATOR . 'log' . DIRECTORY_SEPARATOR . 'opus_consistency-check.log';
if (file_exists($filename)) {
unlink($filename);
}
// Cleanup of Lock File
if (file_exists($filename . '.lock')) {
unlink($filename . '.lock');
}
// Cleanup of Jobs Table
$jobs = Opus_Job::getByLabels(array(Opus_Job_Worker_ConsistencyCheck::LABEL));
foreach ($jobs as $job) {
try {
$job->delete();
} catch (Exception $e) {
// ignore
}
}
parent::tearDown();
}
开发者ID:belapp,项目名称:opus4-application,代码行数:26,代码来源:IndexMaintenanceTest.php
示例14: setUp
public function setUp()
{
parent::setUp();
$this->test = new BowlingGameController(new BowlingGame());
$this->setupLayout($this->test);
$this->layout = $this->getLayout($this->test);
}
开发者ID:viniciusferreira,项目名称:daily,代码行数:7,代码来源:BowlingGameControllerTest.php
示例15: setUp
public function setUp()
{
parent::setUp();
$this->_validator = new Application_Form_Validate_AtLeastOneNotEmpty();
$this->_validator->addElement('name');
$this->_validator->addElement('number');
}
开发者ID:belapp,项目名称:opus4-application,代码行数:7,代码来源:AtLeastOneNotEmptyTest.php
示例16: tearDown
public function tearDown()
{
foreach ($this->localTestFiles as $file) {
unlink($this->folder . '/' . $file);
}
parent::tearDown();
}
开发者ID:belapp,项目名称:opus4-application,代码行数:7,代码来源:FilesTest.php
示例17: setUp
function setUp()
{
parent::setUp();
$this->path = APPLICATION_PATH . "/../tests/fixtures/quiz1";
$this->getFrontController()->setParam('xml_path', $this->path);
//Override for our tests
}
开发者ID:sutantyo,项目名称:itec810,代码行数:7,代码来源:QuizSessionTest.php
示例18: setUp
public function setUp()
{
parent::setUp();
$spreadsheetPersistence = new ZC_SpreadsheetAdapter($this->testuser, $this->testpass, $this->spreadsheetKey);
$geocodingService = new ZC_GeocodingAdapter('');
$this->personMapper = new ZC_PersonMapper($geocodingService, $spreadsheetPersistence);
}
开发者ID:tests1,项目名称:zendcasts,代码行数:7,代码来源:PersonMapperTest.php
示例19: setUp
/** init tests */
public function setUp()
{
$this->setupDatabase(array('default'));
$this->_models = array('User', 'Community', 'Group', 'Feed', 'NewUserInvitation', 'PendingUser');
$this->_daos = array('User');
parent::setUp();
}
开发者ID:josephsnyder,项目名称:Midas,代码行数:8,代码来源:UserControllerTest.php
示例20: setUp
public function setUp()
{
parent::setUpWithEnv('production');
$this->assertSecurityConfigured();
$this->_helper = new Application_View_Helper_AdminMenu();
$this->_helper->setView(Zend_Registry::get('Opus_View'));
}
开发者ID:belapp,项目名称:opus4-application,代码行数:7,代码来源:AdminMenuTest.php
注:本文中的ControllerTestCase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论