mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Disabling AuthTest until code is wrote to use temporary tables
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5426 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d2b4701a11
commit
9c3dfee2d3
1 changed files with 6 additions and 2 deletions
|
@ -86,6 +86,10 @@ class AuthTest extends CakeTestCase {
|
||||||
var $name = 'Auth';
|
var $name = 'Auth';
|
||||||
var $fixtures = array('core.auth_user', 'core.aco', 'core.aro', 'core.aros_aco');
|
var $fixtures = array('core.auth_user', 'core.aco', 'core.aro', 'core.aros_aco');
|
||||||
|
|
||||||
|
function skip() {
|
||||||
|
$this->skipIf(true, 'Auth tests currently disabled, to test use a clean database with tables needed for acl and comment out this line');
|
||||||
|
}
|
||||||
|
|
||||||
function setUp() {
|
function setUp() {
|
||||||
$this->Controller =& new AuthTestController();
|
$this->Controller =& new AuthTestController();
|
||||||
restore_error_handler();
|
restore_error_handler();
|
||||||
|
@ -125,7 +129,7 @@ class AuthTest extends CakeTestCase {
|
||||||
$this->assertEqual($user, array('AuthUser'=>array('id'=>1, 'username'=>'mariano', 'created'=> '2007-03-17 01:16:23', 'updated'=> date('Y-m-d H:i:s'))));
|
$this->assertEqual($user, array('AuthUser'=>array('id'=>1, 'username'=>'mariano', 'created'=> '2007-03-17 01:16:23', 'updated'=> date('Y-m-d H:i:s'))));
|
||||||
$this->Controller->Session->del('Auth');
|
$this->Controller->Session->del('Auth');
|
||||||
}
|
}
|
||||||
|
|
||||||
function testAuthFalse() {
|
function testAuthFalse() {
|
||||||
$this->AuthUser =& new AuthUser();
|
$this->AuthUser =& new AuthUser();
|
||||||
$user = $this->AuthUser->find();
|
$user = $this->AuthUser->find();
|
||||||
|
@ -135,7 +139,7 @@ class AuthTest extends CakeTestCase {
|
||||||
$result = $this->Controller->Auth->startup($this->Controller);
|
$result = $this->Controller->Auth->startup($this->Controller);
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testAuthController(){
|
function testAuthController(){
|
||||||
$this->AuthUser =& new AuthUser();
|
$this->AuthUser =& new AuthUser();
|
||||||
$user = $this->AuthUser->find();
|
$user = $this->AuthUser->find();
|
||||||
|
|
Loading…
Reference in a new issue