Exemplo n.º 1
0
 /**
  * @depends testAppListAll
  */
 public function testAppListByDeveloper()
 {
     $app = new DeveloperApp(self::$orgConfig, '');
     $list = $app->listAllApps();
     shuffle($list);
     $item = reset($list);
     try {
         $list = $item->getList();
     } catch (\Exception $e) {
         $this->fail('Could not fetch app list for developer ' . $item->getDeveloperMail());
     }
     $this->assertNotEmpty($list);
 }
Exemplo n.º 2
0
 private static function &getAppFromEntity(DeveloperAppEntity $entity)
 {
     try {
         $config = self::getConfig($entity);
         $da = new DeveloperApp($config, $entity->developer);
         $da->fromArray((array) $entity);
         return $da;
     } catch (ParameterException $e) {
         return FALSE;
     } catch (ResponseException $e) {
         return FALSE;
     }
 }