ZF-11275: PHPUnit_Framework_AssertionFailedError : Failed asserting last action used <"get-Resume"> was "getResume"
Description
Some problems with camelCased action in default tests.
STR: 1. Create new app using Zend_Tool. 2. Create some camelCased action (using Zend_Tool) like "getResume". 3. Run generated tests.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2011-04-29T17:42:13.000+0000
I've reproduced the issue: (Zend_Tool output clipped for brevity)
Posted by Adam Lundrigan (adamlundrigan) on 2011-04-29T17:53:55.000+0000
The issue is that the test is generated using the controller action function name format (ie: testCamelCase) instead of the url format (ie: test-camel-case). This can be fixed by changing the auto-generated test stub like so:
The unit test passes after I make this change.
Posted by Adam Lundrigan (adamlundrigan) on 2011-04-29T18:10:51.000+0000
I've updated Zend_Tool_Project_Context_Zf_TestApplicationActionMethod to reflect the "fixed" action test format and attached a patch against trunk. Here's what happens when I follow the reproduction steps after applying the patch:
Comments?
Posted by Adam Lundrigan (adamlundrigan) on 2011-05-02T22:32:39.000+0000
Fixed in trunk r23943
Posted by Ralph Schindler (ralph) on 2011-05-03T19:10:03.000+0000
Fixed in 1.11 at r23982