small medium large xlarge

Generic-user-small
15 May 2011, 21:11
Peter (1 post)

One of the ‘playtime’ exercises in Chapter 10 calls for the creation of a unit test which checks that duplicate and unique items are created properly (i.e. quantities increase on duplicate items). Yet, this seems most easily performed using a Functional test of the controller since when I try to carry over code which uses POST commands, the unit tests fail.

What’s the best way to approach the unit testing for this?

You must be logged in to comment