/** * @expectedException Application\Exceptions\ValidateException */ public function testUpdateNonEditableOrganizationId() { // Persist user $this->_user->save(); $this->_user->setOrganizationId('noexists-123123123'); $this->_service->update($this->_user); }