Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     $this->userID = 303448;
     $this->pulseBoard = PulseBoard::createBoard("Dynamic Board", $this->userID);
     $this->pulseColumns = $this->pulseBoard->getColumns();
     $this->pulseColumnCount = count($this->pulseColumns);
 }
Esempio n. 2
0
 public function testBoardCreation()
 {
     $boardCountBefore = count(PulseBoard::getBoards());
     $newBoard = PulseBoard::createBoard("Fuzzy Unicorn Board", $this->userID, "Unicorns are incredibly majestic");
     $boardCountAfter = count(PulseBoard::getBoards());
     $this->assertNotNull($newBoard);
     $this->assertPulseObjectType("PulseBoard", $newBoard);
     $this->assertEquals($boardCountBefore + 1, $boardCountAfter);
     return array("board" => $newBoard, "initial" => $boardCountBefore);
 }