コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     $project = $this->getProject(REST_TestDataBuilder::PROJECT_BACKLOG_DND);
     $this->tracker_test_helper = new Test\Rest\Tracker\TrackerFactory($this->client, $this->rest_request, $project['id'], REST_TestDataBuilder::TEST_USER_1_NAME);
     $this->createReleaseAndBacklog();
 }
コード例 #2
0
 public function setUp()
 {
     parent::setUp();
     $this->first_file = array('name' => 'my file', 'description' => 'a very LARGE file', 'mimetype' => 'text/plain', 'content' => base64_encode('a very LARGE file'));
     $this->second_file = array('name' => 'my file 2', 'description' => 'a very small file', 'mimetype' => 'text/plain', 'content' => base64_encode('a very small file'));
     $this->third_file = array('name' => 'my file 3', 'description' => 'a very small file', 'mimetype' => 'text/plain', 'content' => base64_encode('a very small file'));
 }
コード例 #3
0
 public function setUp()
 {
     parent::setUp();
     $this->tracker_test_helper = new Test\Rest\Tracker\TrackerFactory($this->client, $this->rest_request, REST_TestDataBuilder::PROJECT_PBI_ID, REST_TestDataBuilder::TEST_USER_1_NAME);
     $this->createBacklog();
     $this->createProductAndRelease();
     $this->assignEpicsToProductAndRelease();
 }
コード例 #4
0
 public function setUp()
 {
     parent::setUp();
     $this->tracker_test_helper = new Test\Rest\Tracker\TrackerFactory($this->client, $this->rest_request, REST_TestDataBuilder::PROJECT_PBI_ID, REST_TestDataBuilder::TEST_USER_1_NAME);
     $this->epic1 = $this->createEpic('Epic 1');
     $this->epic2 = $this->createEpic('Epic 2');
     $this->epic3 = $this->createEpic('Epic 3');
     $this->epic4 = $this->createEpic('Epic 4');
     $this->product = $this->createProduct("Widget");
 }
コード例 #5
0
 public function __construct() {
     parent::__construct();
     $this->tracker_test_helper = new Test\Rest\Tracker\TrackerFactory(
         new Guzzle\Http\Client($this->base_url),
         $this->rest_request,
         REST_TestDataBuilder::PROJECT_PRIVATE_MEMBER_ID,
         REST_TestDataBuilder::TEST_USER_1_NAME
     );
     $this->createData();
 }
コード例 #6
0
 public function setUp()
 {
     parent::setUp();
     $this->project_id = REST_TestDataBuilder::PROJECT_PRIVATE_MEMBER_ID;
     $this->tracker_test_helper = new Test\Rest\Tracker\TrackerFactory($this->client, $this->rest_request, $this->project_id, REST_TestDataBuilder::TEST_USER_1_NAME);
     try {
         $this->story = $this->createStory('Story 1');
         $this->task = $this->createTask('Task 1');
         $this->sprint = $this->createSprint("Sprint 1");
         $this->planning_id = $this->getSprintPlanningId();
     } catch (Guzzle\Http\Exception\BadResponseException $exception) {
         echo $exception->getRequest();
         echo $exception->getResponse()->getBody(true);
         die(PHP_EOL);
     }
 }
コード例 #7
0
 public function __destruct()
 {
     parent::__destruct();
 }
コード例 #8
0
 public function setUp()
 {
     parent::setUp();
     $this->tracker_test_helper = new Test\Rest\Tracker\TrackerFactory($this->client, $this->rest_request, REST_TestDataBuilder::PROJECT_PBI_ID, REST_TestDataBuilder::TEST_USER_1_NAME);
 }
コード例 #9
0
 public function setUp()
 {
     parent::setUp();
     $this->tracker_test_helper = new Test\Rest\Tracker\TrackerFactory($this->client, $this->rest_request, REST_TestDataBuilder::PROJECT_PRIVATE_MEMBER_ID, REST_TestDataBuilder::TEST_USER_1_NAME);
     $this->createStoriesAndTasks();
 }
コード例 #10
0
 /**
  * Execute api call
  *
  * @param null $url
  * @param string $method
  * @param array|null $data
  *
  * @throws \Pecee\Http\Rest\RestException
  * @return static
  */
 public function api($url = null, $method = RestBase::METHOD_GET, array $data = array())
 {
     return $this->service->api($url, $method, $data);
 }