========
Upgrades
========

First set the entity encoding to a different value.

    >>> from zope.component import getUtility
    >>> from Products.TinyMCE.interfaces.utility import ITinyMCE
    >>> tinymce = getUtility(ITinyMCE)
    >>> tinymce.entity_encoding = u"named"

Then run the upgrade from 1.0. to 1.1.

    >>> from Products.TinyMCE.upgrades import upgrade_10_to_11
    >>> from Products.CMFCore.utils import getToolByName
    >>> portal_setup = getToolByName(portal, 'portal_setup')
    >>> upgrade_10_to_11(portal_setup)

And check the outcome

    >>> tinymce.entity_encoding
    u'raw'
