Esempio n. 1
0
 public function getFbmlForAppName($appName)
 {
     // FIXME: This layer should not be able to access the dao directly
     $appInfo = Api_Dao_App::getApplicationInfoByName($appName, $this->database);
     $app_id = $appInfo['id'];
     return $this->getFbmlForApp($app_id, $this->uid);
 }
Esempio n. 2
0
 /**
  * @dataProvider testGetInfoByNameProvider
  */
 public function testGetInfoByName($name, $expected)
 {
     $info = Api_Dao_App::getApplicationInfoByName($name, RingsideSocialConfig::$apiKey);
     $apps = $info[0]->toArray();
     foreach ($expected as $name => $val) {
         $this->assertEquals($val, $apps[$name]);
     }
 }