Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for plugin models used in Auth::$userModel
- Loading branch information
Showing
3 changed files
with
133 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
cake/tests/test_app/plugins/test_plugin/models/test_plugin_auth_user.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/* SVN FILE: $Id$ */ | ||
|
||
/** | ||
* Test Plugin Auth User Model | ||
* | ||
* | ||
* | ||
* PHP versions 4 and 5 | ||
* | ||
* CakePHP : Rapid Development Framework (http://www.cakephp.org) | ||
* Copyright 2006-2008, Cake Software Foundation, Inc. | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright 2006-2008, Cake Software Foundation, Inc. | ||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project | ||
* @package cake | ||
* @subpackage cake.cake.tests.test_app.plugins.test_plugin | ||
* @since CakePHP v 1.2.0.4487 | ||
* @version $Revision$ | ||
* @modifiedby $LastChangedBy$ | ||
* @lastmodified $Date$ | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
*/ | ||
|
||
class TestPluginAuthUser extends TestPluginAppModel { | ||
|
||
/** | ||
* Name property | ||
* | ||
* @var string | ||
*/ | ||
var $name = 'TestPluginAuthUser'; | ||
|
||
/** | ||
* useTable property | ||
* | ||
* @var string | ||
*/ | ||
var $useTable = 'auth_users'; | ||
|
||
/** | ||
* useDbConfig property | ||
* | ||
* @var string 'test_suite' | ||
* @access public | ||
*/ | ||
var $useDbConfig = 'test_suite'; | ||
} |