def METHOD_NAME(self):
    if not self._is_enabled():
        return
    self.request.form.update({
        'SearchableText': 'Foobar',
        'portal_type': 'Document'
    })
    view = SearchAjax(self.portal, self.request)
    result = json.loads(view())
    self.assertEquals(result['count'], 3)
    self.assertEquals(result['results'][0]['path'], '/folder1/doc2')