You mean this model.test.php? Or perhaps you're thinking of another
file or something in the nightly build that I haven't downloaded in
the 1.2 version from the site. I didn't see any loadModel in this test
file.
I generally do read fairly well but if you can point out where I
missed the loadModule reference, I would appreciate it.
-------------------
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}
require_once LIBS.'model'.DS.'model.php';
class Test extends Model {
var $useTable = false;
var $name = 'Test';
}
/**
* Short description for class.
*
* @package cake.tests
* @subpackage cake.tests.cases.libs.model
*/
class ModelTest extends UnitTestCase {
function setUp() {
$this->test =& new Test();
}
function testIdentity() {
$result = $this->test->name;
$expected = 'Test';
$this->assertEqual($result, $expected);
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---