[Seaside] Overriding session class for SeasideTesting based test
cases...?
Rick Flower
rickf at ca-flower.com
Thu Sep 21 16:56:15 UTC 2006
David Shaffer wrote:
> You can override #configureApplicationForComponent: to set your session
> class. I have pasted an example from the online tutorial below:
>
> configureApplicationForComponent: aComponentClass
> super configureApplicationForComponent: aComponentClass.
> app configuration addAncestor: MyCustomConfiguration localConfiguration.
> app preferenceAt: #sessionClass put: MyCustomSession.
> FakeMailer reset.
> app preferenceAt: #mailerFactory put: FakeMailer
>
>
Thanks David.. I plopped that (with a few mods obviously) into my test
class (not the main Seaside class being tested) and it magically started
picking up my proper session..
-- Rick
More information about the Seaside
mailing list