Exemple #1
0
 /**
  * @param Group $group
  * @param array $processedTags
  * @return array
  */
 private function getGroupTweets(Group $group, array $processedTags)
 {
     $settings = $this->getTwitterApiSettings();
     $twitterService = $this->getTwitterService();
     $groupTweets = array();
     if ($group->getTags()) {
         $groupTweets = $twitterService->getTweetsByHashKeys($processedTags, $settings);
     }
     return $groupTweets;
 }
Exemple #2
0
 /**
  * @test
  *
  * @group entity
  * @group group-entity
  */
 public function testSettingTags()
 {
     $group = new Group();
     $group->setTags("tag, tag2, tag3");
     $this->assertEquals($group->getTags(), "tag, tag2, tag3");
 }