当前位置: 首页>>代码示例>>PHP>>正文


PHP TaoPhpUnitTestRunner::setUp方法代码示例

本文整理汇总了PHP中oat\tao\test\TaoPhpUnitTestRunner::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP TaoPhpUnitTestRunner::setUp方法的具体用法?PHP TaoPhpUnitTestRunner::setUp怎么用?PHP TaoPhpUnitTestRunner::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在oat\tao\test\TaoPhpUnitTestRunner的用法示例。


在下文中一共展示了TaoPhpUnitTestRunner::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     TaoPhpUnitTestRunner::initTest();
     $class = new core_kernel_classes_Class(CLASS_OAUTH_CONSUMER);
     $this->credentials = $class->createInstanceWithProperties(array(RDFS_LABEL => 'test_credentials', PROPERTY_OAUTH_KEY => 'testcase_12345', PROPERTY_OAUTH_SECRET => 'secret_12345'));
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:7,代码来源:OauthTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     TaoPhpUnitTestRunner::initTest();
     $rdfClass = new core_kernel_classes_Class(CLASS_GENERIS_RESOURCE);
     $this->class = $rdfClass->createSubClass('test class');
     $this->property = $this->class->createProperty('test property');
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:8,代码来源:SearchTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     // Save installation original mapping for restitution in tearDown.
     @mkdir($this->getBasePath());
     $this->setRegistry(new SharedLibrariesRegistry($this->getBasePath(), $this->getBaseUrl()));
     $this->initialMapping = $this->getClientLibRegistryMap();
 }
开发者ID:nagyist,项目名称:extension-tao-itemqti,代码行数:8,代码来源:SharedLibrariesRegistryTest.php

示例4: setUp

 protected function setUp()
 {
     $this->disableCache();
     $pass = md5(rand());
     $taoManagerRole = new core_kernel_classes_Resource(INSTANCE_ROLE_BACKOFFICE);
     $this->testUser = tao_models_classes_UserService::singleton()->addUser('testUser', $pass, $taoManagerRole);
     $this->credentials = array('loginForm_sent' => 1, 'login' => 'testUser', 'password' => $pass);
     $this->assertIsA($this->testUser, 'core_kernel_classes_Resource');
     parent::setUp();
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:10,代码来源:FsAccessTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $userService = tao_models_classes_UserService::singleton();
     $roleService = tao_models_classes_RoleService::singleton();
     $baseRole = new core_kernel_classes_Resource(INSTANCE_ROLE_BACKOFFICE);
     $this->testRole = $roleService->addRole('testrole', $baseRole);
     $this->user = $userService->addUser('testcase', 'testcase');
     $userService->attachRole($this->user, $this->testRole);
 }
开发者ID:swapnilaptara,项目名称:tao-aptara-assess,代码行数:10,代码来源:FuncACLTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $ext = common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiItem');
     $initialMapping = $ext->getConfig($this->getConfigId());
     // Save installation original mapping for restitution in tearDown.
     $this->setInitialMapping(is_array($initialMapping) ? $initialMapping : array());
     $ext->setConfig($this->getConfigId(), array());
     @mkdir($this->getBasePath());
     $this->setRegistry(new SharedLibrariesRegistry($this->getBasePath(), $this->getBaseUrl()));
 }
开发者ID:swapnilaptara,项目名称:tao-aptara-assess,代码行数:11,代码来源:SharedLibrariesRegistryTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->service = PlatformThemingService::singleton();
     // Save current Theming config...
     $this->tempConfig = $this->service->retrieveThemingConfig();
     // Set up all tests with an empty Theming Configuration.
     $this->service->syncThemingConfig(new PlatformThemingConfig());
     // Deal with data storage.
     $testFile = rtrim(sys_get_temp_dir(), "\\/") . '/tmp-platformthemingtest.txt';
     file_put_contents($testFile, 'data');
 }
开发者ID:nagyist,项目名称:extension-tao-theming-platform,代码行数:12,代码来源:PlatformThemingServiceTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     TaoPhpUnitTestRunner::initTest();
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:5,代码来源:UriHelperTest.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
 }
开发者ID:oat-sa,项目名称:tao-core,代码行数:4,代码来源:DatatableRequestTest.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     TaoPhpUnitTestRunner::initTest();
     $this->initEnv($this->tmpPath, $this->envName, $this->deep, $this->fileCount);
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:6,代码来源:FileHelperTest.php

示例11: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->factory = new Factory();
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:5,代码来源:FactoryTest.php

示例12: setUp

 protected function setUp()
 {
     parent::setUp();
     // load constants
     \common_ext_ExtensionsManager::singleton()->getExtensionById('taoDelivery');
 }
开发者ID:nagyist,项目名称:extension-tao-delivery,代码行数:6,代码来源:OntologyServiceTest.php

示例13: setUp

 protected function setUp()
 {
     parent::setUp();
 }
开发者ID:oat-sa,项目名称:tao-core,代码行数:4,代码来源:StreamRangeTest.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->imsManifestExtractor = new ImsManifestMetadataExtractor();
 }
开发者ID:nagyist,项目名称:extension-tao-itemqti,代码行数:5,代码来源:ImsManifestExtractionTest.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     common_session_SessionManager::startSession(new \common_test_TestUserSession());
 }
开发者ID:oat-sa,项目名称:tao-core,代码行数:5,代码来源:CsvExporterTest.php


注:本文中的oat\tao\test\TaoPhpUnitTestRunner::setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。