public function testGetSingleRandomTipContent() { $content = ZurmoTipsUtil::getSingleRandomTipContent(); $this->assertNotNull($content); }
/** * Retrieves a random tip */ public function actionGetTip() { $tipContent = ZurmoTipsUtil::getRandomTipResolvedForCurrentUser(); echo CJSON::encode($tipContent); }