06.03
php
saved
killerboy
Note
killerboy did not leave a note
killerboy did not leave a note
- <?php
- App::import('Model', 'User');
- class UserTest extends User {
- var $name = 'UserTest';
- var $useDbConfig = 'test_suite';
- }
- class UserTestCase extends CakeTestCase {
- function startCase()
- {
- $this->UserTest =& new UserTest();
- }
- function testCount()
- {
- $result = $this->UserTest->findCount();
- $expected = 3;
- $this->assertEqual($result, $expected);
- }
- }
- ?>
Parsed in 0.024 seconds, using GeSHi 1.0.7.14