Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     $this->userId = 217784;
     $this->board = new PulseBoard(19306968);
     $this->pulse = $this->board->createPulse('Flapping Umbrella', $this->userId, 'dynamic_pulses');
 }
Esempio n. 2
0
 public function testCreateUpdate()
 {
     $pulse = $this->board->createPulse("Neurotic Jackhammer Detective", $this->userId);
     $updateContent = self::updateProvider();
     $pulse->createUpdate($updateContent[0][0], $updateContent[0][1]);
     $pulse->createUpdate($updateContent[1][0], $updateContent[1][1]);
     $this->assertCountEqual(2, $pulse->getUpdates());
     return $pulse;
 }
Esempio n. 3
0
 public function testCreatePulseInGroup()
 {
     $myGroup = $this->pulseBoard->createGroup("Unicorn Group");
     $newPulse = $this->pulseBoard->createPulse("Feed the Unicorn", $this->userID, $myGroup->getId());
     $this->assertEquals($myGroup->getId(), $newPulse->getGroupId());
 }
Esempio n. 4
0
 private function webRequestPost($content, $fields)
 {
     $entryId = $fields["EntryId"];
     $priority = $fields["Field113"];
     $webProjectsBoard = new PulseBoard($this->webRequestsId);
     $newPulse = $webProjectsBoard->createPulse("Web Request #" . $entryId, $this->vladId, "web_requests");
     $newPulse->getTextColumn("text")->updateValue($priority);
     $newPulse->getPersonColumn("person")->updateValue($this->vladId);
     $newPulse->addNote("Web Request Details", $content);
     return $newPulse->getId();
 }