本文整理汇总了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'));
}
示例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');
}
示例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();
}
示例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();
}
示例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);
}
示例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()));
}
示例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');
}
示例8: setUp
public function setUp()
{
parent::setUp();
TaoPhpUnitTestRunner::initTest();
}
示例9: setUp
public function setUp()
{
parent::setUp();
}
示例10: setUp
public function setUp()
{
parent::setUp();
TaoPhpUnitTestRunner::initTest();
$this->initEnv($this->tmpPath, $this->envName, $this->deep, $this->fileCount);
}
示例11: setUp
protected function setUp()
{
parent::setUp();
$this->factory = new Factory();
}
示例12: setUp
protected function setUp()
{
parent::setUp();
// load constants
\common_ext_ExtensionsManager::singleton()->getExtensionById('taoDelivery');
}
示例13: setUp
protected function setUp()
{
parent::setUp();
}
示例14: setUp
public function setUp()
{
parent::setUp();
$this->imsManifestExtractor = new ImsManifestMetadataExtractor();
}
示例15: setUp
public function setUp()
{
parent::setUp();
common_session_SessionManager::startSession(new \common_test_TestUserSession());
}