I have followed the steps  mentioned 'http://bakery.cakephp.org/
articles/view/testing-models-with-cakephp-1-2-test-suite' LINK. I am
putting my user.test.php's code here. Please let me know what i am
missing.

<?php
App::import('Model','User');

class UserTest extends User{
var $name = 'UserTest ';
var $useDbConfig = 'test_suite';

}

class UserTest Case extends CakeTestCase {
var $fixtures = array( 'user_test' );
function testInactive() {
$this->UserTest =& new UserTest ();

$result = $this->UserTest ->inactive(array('id', 'name'));
$expected = array(
array('UserTest ' => array( 'id' => 1, 'name' => 'User Communities' ))

);

$this->assertEqual($result, $expected);
}
}
?>
I am getting  Database table user_tests for model UserTest was not
found error. How tables for test suites are automatically created? Do
i need to any setting in database.php or user_test_fixtures.php file?


Please reply.

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

Reply via email to