06.04
php
saved
woodsman
Note
My test case that refuses to create a model
My test case that refuses to create a model
- /* /tests/fixtures/user_confirmation_test_fixture.php */
- <?php
- class UserConfirmationTestFixture extends CakeTestFixture {
- var $name = 'UserConfirmationTest';
- var $import = 'User';
- );
- }
- ?>
- /* THE ACTUAL TEST CASE FILE (/tests/cases/models/user.test.php) */
- <?php
- echo "DEF HERE";
- //exit;
- App::import('Model', 'User');
- /**
- * Subclass of my model.
- */
- class UserTest extends User
- {
- var $useTable='users';
- var $useDbConfig = 'test_suite';
- var $name = 'UserTest';
- //tried a few variations here!
- //var $useDbConfig = 'default';
- //var $tablePrefix = '';
- }
- /**
- *
- */
- class UserTestCase extends CakeTestCase
- {
- function startCase()
- {
- $this->UserTest = & new UserTest();
- //exit;
- }
- /*
- function startTest()
- {
- echo "start test got run";
- exit;
- }
- */
- /**
- *
- * @return
- */
- function testConfirmEmail()
- {
- // test stuff!!!
- }
- }
- ?>
Parsed in 0.062 seconds, using GeSHi 1.0.7.14