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();
 }
 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();
 }
 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);
 }