On Fri, Apr 18, 2008 at 10:54 AM, bhushan A <[EMAIL PROTECTED]> wrote:
> > I have followed the steps given in "http://bakery.cakephp.org/ > articles/view/testing-models-with-cakephp-1-2-test-suite<http://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1-2-test-suite>" > link. But > still I am gettng 'Fatal error: Class 'User' not found in /tests/cases/ > models/user.test.php' I am putting my user.test.php's code here. > Please let me know what i am missing. > > <?php > App::import('User','User'); - You need to do App::import('Model', 'User'); here -- Regards, Amit http://amitrb.wordpress.com/ http://coppermine-gallery.net/ http://cheesecake-photoblog.org/ http://www.sanisoft.com/blog/author/amitbadkas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---