Hi everyone,

I'm using Cake 2.0.2 and just started a new app where I want to do
some Tests on the Models.
So far I have created a User and Setting model, both with the Cake
Console.
For both I added two records to the Fixture and tried to run simple
test for find('all');
For the Setting test case that works fine. For the User test case I
get following error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table xyz does not
exist.

To try to fix this I made the setup as simple as possible:
- I removed all model assosiations
- I only loaded the one Fixture I need the Test Case
- I dindt even use '$this->User' anymore in the end (in the Test Case)

When I set the $records variable in the Fixture to an empty array, the
error went away.

When I googled this I could only find a discussion about an error in
relation to table prefixes, but I'm not using any.

Any hints??

Thanks,
flosky

-- 
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

Reply via email to