Hi I'm using CakePHP 1.2.3.8166 and I'm trying to get to grips with using the test suite for testing my application. I've downloaded and installed SimpleTest OK and I used cake bake to generate tests for my models and controllers.
I currently only have 3 tables in my schema: userlevels, users and dashboards. These are related in the following way: Userlevels has many users Users belongs to userlevels and has many dashboards Dashboards belongs to users Very noddy stuff really. However I run into problems when running the Test Suite on the models. Testing the Dashboard model works fine. However testing both the Userlevel and User models fails complaining that: Error: Database table test_suite_dashboards for model Dashboard was not found. When Iook at the schema after the test run the test_suite_ tables for users and userlevels have both been created OK; but the test_suite_dashboard table has not. Testing the Dashboard model shows me that test_suite_dashboard is being created OK during the test so I guess it gets dropped OK at the end of the test, which is what I'd expect. I've checked my dashboard_fixture.php file and it looks OK to me. Can anyone explain why the dashboard model passes OK; but testing the other models fails because test_suite_dashboards wasn't found? Thanks David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
