public function testUpdateOrg() { $this->markTestIncomplete(); // First persist it $this->_org->setParentId(self::MASTER_ORG_ID); $this->_org->save(); // Update it $this->_org->setName('EditedFoo'); $this->_service->update($this->_org); // Load it again to compare $org = $this->_service->load($this->_org->getId()); $this->assertEquals($this->_org->exportData(), $org->exportData()); }
public function testUpdateOrg() { // First persist it $this->_org->setParentId(self::CUSTOMER_ORG_ID); $this->_org->save(); // Update it $this->_org->setName('EditedFoo'); $this->_org->otherContact_1 = array(); $this->_service->update($this->_org); // Load it again to compare $org = $this->_service->load($this->_org->getId()); $this->assertNull($org->otherContact_1, "Cleared other contact"); unset($this->_org->otherContact_1); $this->assertEquals($this->_org->exportData(), $org->exportData()); }
public function testCreateNewOrgWithParent() { $this->_org->setParentId(self::SUPER_ORG_ID); $this->_service->create($this->_org); $this->assertNotNull($this->_org->getId()); }