I have a PRWidget that initializes a report based on
whether self context
user isNil. I'm attempting to do unit tests on the widget using
SeasideTesting, but when setUp initializes the widget, it has no context. Is
there a simple way to create a test context?
Have a look at the references to PRContext in Pier-Testing there are a
few examples.
For a basic example
PRContext kernel: (PRKernel new root: (PRPage named: 'Root'))
should give you a valid context on a temporary kernel with a single root page.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch