本文整理汇总了PHP中TuleapTestCase类的典型用法代码示例。如果您正苦于以下问题:PHP TuleapTestCase类的具体用法?PHP TuleapTestCase怎么用?PHP TuleapTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TuleapTestCase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
$this->zip->close();
$this->archive->cleanUp();
//`rm -rf $this->tmp_dir/import_project_*`;
parent::tearDown();
}
示例2: setUp
public function setUp()
{
parent::setUp();
$this->response = mock('Git_GitoliteHousekeeping_GitoliteHousekeepingResponse');
$this->backend_service = mock('BackendService');
$this->command = new Git_GitoliteHousekeeping_ChainOfResponsibility_ServiceRestarter($this->response, $this->backend_service);
}
示例3: setUp
public function setUp()
{
parent::setUp();
$this->target_tracker = aTracker()->withId(12)->withChildren(array())->build();
$this->formelement_factory = mock('Tracker_FormElementFactory');
$this->factory = new Tracker_Workflow_Trigger_RulesBuilderFactory($this->formelement_factory);
}
示例4: setUp
public function setUp()
{
parent::setUp();
$this->ldap = mock('LDAP');
stub($this->ldap)->getLDAPParam('dn')->returns('dc=tuleap,dc=com');
$this->apache = new LDAP_SVN_Apache($this->ldap, mock('LDAP_ProjectManager'), array());
}
示例5: setUp
public function setUp()
{
parent::setUp();
$this->templates_dir = dirname(__FILE__) . '/templates';
$this->renderer = new MustacheDebugRenderer($this->templates_dir);
$this->presenter = new MustacheDebugRenderer_DummyPresenter();
}
示例6: setUp
public function setUp()
{
parent::setUp();
$this->dao = mock('Openid_Dao');
$this->driver = mock('Openid_Driver_ConnexionDriver');
$this->connexion_manager = new Openid_ConnexionManager($this->driver);
}
示例7: setUp
public function setUp()
{
parent::setUp();
$this->dao = mock('Git_Driver_Gerrit_ProjectCreatorStatusDao');
$this->repository = mock('GitRepository');
$this->gerrit_status = new Git_Driver_Gerrit_ProjectCreatorStatus($this->dao);
}
示例8: setUp
public function setUp()
{
parent::setUp();
$this->field_id = 12;
$this->ugroup_manager = mock('UGroupManager');
$this->value_dao = mock('Tracker_FormElement_Field_List_Bind_Ugroups_ValueDao');
$this->default_value_dao = mock('Tracker_FormElement_Field_List_Bind_DefaultvalueDao');
$this->field = aSelectBoxField()->withId($this->field_id)->build();
$this->root = new SimpleXMLElement('<bind type="ugroups" />');
$this->xml_mapping = array();
$this->integrators_ugroup_id = 103;
$this->integrators_ugroup_name = 'Integrators';
$this->integrators_ugroup = new ProjectUGroup(array('ugroup_id' => $this->integrators_ugroup_id, 'name' => $this->integrators_ugroup_name));
$this->integrators_ugroup_value = new Tracker_FormElement_Field_List_Bind_UgroupsValue(345, $this->integrators_ugroup, false);
$this->customers_ugroup_id = 104;
$this->customers_ugroup_name = 'Customers';
$this->customers_ugroup = new ProjectUGroup(array('ugroup_id' => $this->customers_ugroup_id, 'name' => $this->customers_ugroup_name));
$this->customers_ugroup_value = new Tracker_FormElement_Field_List_Bind_UgroupsValue(687, $this->customers_ugroup, false);
$this->project_members_ugroup_name = 'ugroup_project_members_name_key';
$this->project_members_ugroup = new ProjectUGroup(array('ugroup_id' => ProjectUGroup::PROJECT_MEMBERS, 'name' => $this->project_members_ugroup_name));
$this->project_members_ugroup_value = new Tracker_FormElement_Field_List_Bind_UgroupsValue(4545, $this->project_members_ugroup, false);
$this->hidden_ugroup_id = 105;
$this->hidden_ugroup_name = 'Unused ProjectUGroup';
$this->hidden_ugroup = new ProjectUGroup(array('ugroup_id' => $this->hidden_ugroup_id, 'name' => $this->hidden_ugroup_name));
$this->hidden_ugroup_value = new Tracker_FormElement_Field_List_Bind_UgroupsValue(666, $this->hidden_ugroup, true);
}
示例9: mock
function __construct($name = 'Chageset Value List Test')
{
parent::__construct($name);
$this->field_class = 'MockTracker_FormElement_Field_List';
$this->changesetvalue_class = 'Tracker_Artifact_ChangesetValue_List';
$this->user = mock('PFUser');
}
示例10: setUp
public function setUp()
{
parent::setUp();
ForgeConfig::set('codendi_log', '/tmp');
$this->log_file = tempnam(ForgeConfig::get('codendi_log'), 'codendi_syslog');
$this->logger = new BackendLogger($this->log_file);
}
示例11: setUp
public function setUp()
{
parent::setUp();
$stats_formatter = mock('Statistics_Formatter');
$this->usage_formatter = new Statistics_Services_UsageFormatter($stats_formatter);
$this->first_input_datas = array(array('group_id' => 1, 'result' => 'res1'), array('group_id' => 87, 'result' => 'res2'), array('group_id' => 104, 'result' => 'res3'));
}
示例12: setUp
public function setUp()
{
parent::setUp();
$this->tracker_id = 666;
$this->tracker = mock('Tracker');
stub($this->tracker)->getId()->returns($this->tracker_id);
$this->task_tracker = mock('Tracker');
stub($this->task_tracker)->getId()->returns(42);
$this->story_tracker = mock('Tracker');
stub($this->story_tracker)->getId()->returns(69);
$this->tracker_factory = mock('TrackerFactory');
stub($this->tracker_factory)->getTrackerById(42)->returns($this->task_tracker);
stub($this->tracker_factory)->getTrackerById(69)->returns($this->story_tracker);
$this->status_field = aMockField()->withId(123)->withTracker($this->task_tracker)->build();
$this->assignto_field = aMockField()->withId(321)->withTracker($this->story_tracker)->build();
$this->stage_field = aMockField()->withId(322)->withTracker($this->story_tracker)->build();
$this->element_factory = mock('Tracker_FormElementFactory');
stub($this->element_factory)->getFieldById(123)->returns($this->status_field);
stub($this->element_factory)->getFieldById(321)->returns($this->assignto_field);
stub($this->element_factory)->getFieldById(322)->returns($this->stage_field);
$existing_mappings = array(42 => new Cardwall_OnTop_Config_TrackerMappingStatus($this->task_tracker, array(), array(), $this->status_field), 69 => new Cardwall_OnTop_Config_TrackerMappingFreestyle($this->story_tracker, array(), array(), $this->stage_field));
$this->dao = mock('Cardwall_OnTop_ColumnMappingFieldDao');
$this->value_dao = mock('Cardwall_OnTop_ColumnMappingFieldValueDao');
$this->command = new Cardwall_OnTop_Config_Command_UpdateMappingFields($this->tracker, $this->dao, $this->value_dao, $this->tracker_factory, $this->element_factory, $existing_mappings);
}
示例13: setUp
public function setUp()
{
parent::setUp();
$this->artifact = anArtifact()->withId(9787)->build();
$this->data = array('somekey' => 'somevalue');
$this->node = new ArtifactNode($this->artifact, $this->data);
}
示例14: setUp
public function setUp()
{
parent::setUp();
$this->milestone_1_id = 132;
$this->milestone_1 = stub('Planning_ArtifactMilestone')->getArtifactId()->returns($this->milestone_1_id);
$this->milestone_2_id = 853;
$this->milestone_2 = stub('Planning_ArtifactMilestone')->getArtifactId()->returns($this->milestone_2_id);
$this->virtual_top_milestone = stub('Planning_VirtualTopMilestone')->getArtifactId()->returns(null);
$this->strategy_1 = mock('AgileDashboard_Milestone_Backlog_DescendantBacklogStrategy');
$this->strategy_2 = mock('AgileDashboard_Milestone_Backlog_DescendantBacklogStrategy');
$this->strategy_factory = mock('AgileDashboard_Milestone_Backlog_BacklogStrategyFactory');
stub($this->strategy_factory)->getBacklogStrategy($this->milestone_1)->returns($this->strategy_1);
stub($this->strategy_factory)->getBacklogStrategy($this->milestone_2)->returns($this->strategy_2);
$this->backlog_item_collection_factory = mock('AgileDashboard_Milestone_Backlog_BacklogItemCollectionFactory');
$this->sequence_id_manager = new AgileDashboard_SequenceIdManager($this->strategy_factory, $this->backlog_item_collection_factory);
$this->user = aUser()->build();
$this->artifact_id_1 = 123;
$this->artifact_id_2 = 456;
$this->artifact_id_3 = 789;
$this->artifact_1 = anArtifact()->withId($this->artifact_id_1)->build();
$this->artifact_2 = anArtifact()->withId($this->artifact_id_2)->build();
$this->artifact_3 = anArtifact()->withId($this->artifact_id_3)->build();
$this->artifact_id_4 = 254;
$this->artifact_id_5 = 255;
$this->artifact_id_6 = 256;
$this->artifact_4 = anArtifact()->withId($this->artifact_id_4)->build();
$this->artifact_5 = anArtifact()->withId($this->artifact_id_5)->build();
$this->artifact_6 = anArtifact()->withId($this->artifact_id_6)->build();
$this->backlog_item_1 = stub('AgileDashboard_Milestone_Backlog_BacklogItem')->getArtifact()->returns($this->artifact_1);
$this->backlog_item_2 = stub('AgileDashboard_Milestone_Backlog_BacklogItem')->getArtifact()->returns($this->artifact_2);
$this->backlog_item_3 = stub('AgileDashboard_Milestone_Backlog_BacklogItem')->getArtifact()->returns($this->artifact_3);
$this->items_collection = new AgileDashboard_Milestone_Backlog_BacklogItemCollection();
}
示例15: setUp
public function setUp()
{
parent::setUp();
$this->wiki_page = mock('WikiPage');
$this->group_id = 101;
$this->actions = mock('FullTextSearchWikiActions');
}