Here is my code. I followed the Bakery instructions to a T:
user_test_fixture.php (in tests\fixtures)
class UserTestFixture extends CakeTestFixture {
var $name = 'UserTest';
var $import = 'User';
}
user.test.php (in tests\cases\models):
App::import('Model', array('User'));
class UserTest extends User {
var $name = 'UserTest';
var $useDbConfig = 'test_suite';
}
class UserTestCase extends CakeTestCase {
var $fixtures = array('user_test');
function testBleah(){
// Test assertions
$this->assertTrue(true);
$this->assertTrue(false);
}
}
And I consistently get this:
-------------------------------------
Error: Database table test_suite_usr for model User was not found.
The User model uses the usr table ... but somewhere the User model is
getting the test_suite table prefix set. Strangely, it fails just on
instantiation in the cake_test_fixture.php file - nothing sets the
table_prefix explicitly (that I can see).
Everything works fine if I just define the table fields, but I'd
really like to import the structure. Is there something I'm missing?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---