Hi, I'm using 1.2.x.x nightly builds. I'm using Bake script to generate a simple model called "nature" whith only 2 fields : id (int auto-increment PK) and label (varchar 50). I'm generating the NaturesController too with the same way. Bake create automagically Unit tests for my model and my controller, good! I launch 'controllers\natures_controller.test.php': it works fine. But when I launch test for the model: 'models\nature.test.php', there is an error!
[code] Individual test case: models\nature.test.php Query: CREATE TABLE `natures` ( `id` int(10) DEFAULT NULL auto_increment, `label` varchar(50) NOT NULL ); Error: Database table natures for model Nature was not found. 1075: Incorrect table definition; there can be only one auto column and it must be defined as a key [/code] The Test Suite shouldn't create "test_natures" table instead of 'natures'? The problem exists even I write "var $useDbConfig = 'test' " in "nature.test.php... Avairet --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
