Re: Fixture not using Model useTable

2010-04-09 Thread Josh
I just solved it after a miserable 3 hours of trouble-shooting. SimpleTest seems to have a flaw. It has two different methods for determining the test_suite table name. During table creation and insertion of fixture records, it uses the test model name property. During subsequent interaction with

Re: Fixture not using Model useTable

2010-04-09 Thread Jeremy Burns
Wild straw grabbing - is it to do with the pluralisation of the table name? data/datum/datums? Jeremy Burns jeremybu...@me.com On 10 Apr 2010, at 07:12, Josh wrote: > Thanks for your response. I have been clearing cache periodically and > my debug is set to 2. I believe that when running simpl

Re: Fixture not using Model useTable

2010-04-09 Thread Josh
Thanks for your response. I have been clearing cache periodically and my debug is set to 2. I believe that when running simpleTest, cake flashes the cache automatically at debug = 2 but I have been clearing it myself just to be sure. No luck still. Any other ideas? Check out the new CakePHP Ques

Re: Fixture not using Model useTable

2010-04-09 Thread Jeremy Burns
Have you cleared your cache? Clear the contents of all folders under /app/tmp/cache. Then run your app with debug set to 2 at least once (this refills the cache). If you are using var $persistModel = true; in your app_controller, disable that first then re-enable. Jeremy Burns jeremybu...@me.

Fixture not using Model useTable

2010-04-09 Thread Josh
Hello (help!!!), I had to rename a table in my database. I was able to specify the useTable in my model so there was no significant knock-on from this change. But, my unit tests won't recognize the new table name during table creation. I can see in the SQL dump that the old table has been created