I have followed the steps given in  "http://bakery.cakephp.org/
articles/view/testing-models-with-cakephp-1-2-test-suite" link. But
still I am gettng 'Fatal error: Class 'User' not found in /tests/cases/
models/user.test.php' I am putting my user.test.php's code here.
Please let me know what i am missing.

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

class UserTest extends User{  //This ''User" class is not found.
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);
}
}
?>


Please reply. Waiting for your reply.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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