Ticket #1114 (closed enhancement: fixed)
Rename AgaviViewTestCase Assertions to something more explicit
| Reported by: | felix | Owned by: | felix |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | testing | Version: | 1.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | Patch attached: | no |
Description
The assertions in the AgaviViewTestCase? imply that they act on the full response object whereas the actual scope is on the data set by the view only. Examples:
- assertResponseHasContentType
- assertResponseHasHeader
- assertResponseHasCookie
Those should be named clearer, maybe
- assertViewSetsContentType
- assertViewSetsHeader
- assertViewSetsCookie
which would make clear that the scope is on the view and not the global response.
See #1113 for an example.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

