Thank for the fast response:
- placed the wrapper inside app/Lib/Test
- added App::uses('MyWrapper...', 'Test') on top of all my controllers tests
- changed 'extends ControllerTestCase' to 'extends MyWrapper...'
et voila!Regards, Matteo On Sun, Dec 11, 2011 at 11:54 AM, euromark <[email protected]> wrote: > also create a package name for it (e.g. Test) > > App::uses('My...', 'Test'); > App::uses('My...', 'PluginName.Test'); > > > On 11 Dez., 11:52, euromark <[email protected]> wrote: >> I place mine in the Lib folder >> either plugin (cross app) or app Lib folder. >> in 2.0 you can >> >> On 11 Dez., 11:30, Matteo Landi <[email protected]> wrote: >> >> >> >> >> >> >> >> > Hi, >> > where is the right place to put a class which extends and add some >> > functionalities to ControllerTestCase so that I can it inside all my >> > controllers tests? Imagine all my controllers tests implement a >> > testAction wrapper: it would be handy to extend ControllerTestCase, >> > implement such wrapper in there, and finally make all my tests extend >> > MyControllerTestCase instead of the legacy one. >> >> > Regards, >> > Matteo >> >> > --http://www.matteolandi.net/ > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php > -- http://www.matteolandi.net/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
