public function testProjectList_HasCountAndEntries()
 {
     $model = new Api\Model\ProjectListModel();
     $model->read();
     $this->assertNotEqual(0, $model->count);
     $this->assertNotNull($model->entries);
 }
 public function testProjectList_HadOnlyProjects()
 {
     $model = new Api\Model\ProjectListModel();
     $model->read();
     foreach ($model->entries as $entry) {
         $this->assertTrue(array_key_exists("projectName", $entry));
     }
 }
Пример #3
0
 /**
  *
  * @return \Api\Model\ProjectListModel
  */
 public static function listProjects()
 {
     $list = new \Api\Model\ProjectListModel();
     $list->read();
     return $list;
 }