为了体会一下功能测试,我们来考虑登录和注册动作涉及的UsersController。
For a taste of functional testing specifics, we consider the case of the UsersController involved in the login and registration actions.
这个构造函数会注册动作处理程序的名称(使用动作名称来调用父类),我们会在工作流xml中使用它。
This constructor registers the action handler name (invoking super with the action name) that will be used inside workflow XML.
我们的样例使用代码注册菜单动作。
应用推荐