ZF-8787: Unit tests for Zend_Form_Element_Submit fail on default translator

Issue Type: Unit Tests: Problem Created: 2010-01-12T07:29:49.000+0000 Last Updated: 2010-01-16T06:44:05.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Menno Luiten (mluiten) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments: - ZF-8787.patch


Several (four, to be precise) unit tests fail because they expect the label of the element to be set to the name of the element ('foo') and not be translated. However, for some reason, there is a default translator which always translates 'foo' into 'bar'. Probably left behind from some other Zend_Form related unit test? Anyway, to prevent this a slight adjustment to the setUp() is in order. See attachment in comment #1.


Posted by Menno Luiten (mluiten) on 2010-01-12T07:31:17.000+0000

Attached patch which calls Zend_Form::setDefaultTranslator(null) in setUp()

Posted by Menno Luiten (mluiten) on 2010-01-16T06:44:05.000+0000

This seems to be fixed since r20266 by matthew

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.