public function testExportOrgData()
 {
     $org = new Organization\OrgMasterModel($this->_data);
     $array = $org->exportData();
     $this->assertTrue(is_array($array));
     $this->assertEquals($this->_data, $array);
 }
 public function testExportOrgData()
 {
     $this->markTestIncomplete();
     // TODO: Shouldn't this be OrgEndUserModel????
     $org = new Organization\OrgMasterModel($this->_data);
     $array = $org->exportData();
     $this->assertTrue(is_array($array));
     $this->assertEquals($this->_data, $array);
 }
 public function testFindAll()
 {
     $data = $this->_org->exportData();
     $min = 4;
     $orgSaved = array();
     for ($i = 0; $i < $min; $i++) {
         $data2 = $data;
         $data2['name'] .= '-' . ($i + 1);
         $org = new OrgMasterModel($data2);
         $orgSaved[$this->_mapper->insert($org)] = $org;
     }
     $orgs = $this->_mapper->findAll()->getItems();
     $this->assertTrue(is_array($orgs));
     $this->assertGreaterThanOrEqual($min, count($orgs));
     //         foreach ($orgs as $org) {
     //             $this->assertInstanceOf('\Application\Model\Organization\OrgMasterModel', $org);
     //         }
     foreach ($orgSaved as $org) {
         $org->delete();
     }
 }