public function testTimelineStream() { $network = $this->network; $cursor = CursorFactory::getPersonalStreamCursor($network, $this->config->USER_ID); $data = $cursor->next(); $data = $cursor->previous(); }
public function testTopicStreamCursor() { $topicId = "topic"; $label = "label"; $tsResource = sprintf("urn:livefyre:%s.fyre.co:topic=%s:topicStream", $this->network->getNetworkName(), $topicId); $topic = Topic::create($this->network, $topicId, $label); $cursor = CursorFactory::getTopicStreamCursor($this->network, $topic); $this->assertEquals($tsResource, $cursor->getData()->getResource()); $cursor = CursorFactory::getTopicStreamCursor($this->network, $topic, $this::LIMIT, time()); $this->assertEquals($tsResource, $cursor->getData()->getResource()); $this->assertEquals($this::LIMIT, $cursor->getData()->getLimit()); }