@@ -498,8 +498,8 @@ function startTest() {
498
498
499
499
ClassRegistry::addObject ('view ' , new View ($ this ->Controller ));
500
500
501
- $ this ->Controller ->Session ->del ('Auth ' );
502
- $ this ->Controller ->Session ->del ('Message.auth ' );
501
+ $ this ->Controller ->Session ->delete ('Auth ' );
502
+ $ this ->Controller ->Session ->delete ('Message.auth ' );
503
503
504
504
Router::reload ();
505
505
@@ -517,8 +517,8 @@ function endTest() {
517
517
$ _ENV = $ this ->_env ;
518
518
Configure::write ('Acl ' , $ this ->_acl );
519
519
Configure::write ('Security.salt ' , $ this ->_securitySalt );
520
- $ this ->Controller ->Session ->del ('Auth ' );
521
- $ this ->Controller ->Session ->del ('Message.auth ' );
520
+ $ this ->Controller ->Session ->delete ('Auth ' );
521
+ $ this ->Controller ->Session ->delete ('Message.auth ' );
522
522
ClassRegistry::flush ();
523
523
unset($ this ->Controller , $ this ->AuthUser );
524
524
}
@@ -586,7 +586,7 @@ function testLogin() {
586
586
'id ' => 1 , 'username ' => 'mariano ' , 'created ' => '2007-03-17 01:16:23 ' , 'updated ' => date ('Y-m-d H:i:s ' )
587
587
));
588
588
$ this ->assertEqual ($ user , $ expected );
589
- $ this ->Controller ->Session ->del ('Auth ' );
589
+ $ this ->Controller ->Session ->delete ('Auth ' );
590
590
591
591
$ this ->Controller ->data ['AuthUser ' ]['username ' ] = 'blah ' ;
592
592
$ this ->Controller ->data ['AuthUser ' ]['password ' ] = '' ;
@@ -595,7 +595,7 @@ function testLogin() {
595
595
596
596
$ user = $ this ->Controller ->Auth ->user ();
597
597
$ this ->assertFalse ($ user );
598
- $ this ->Controller ->Session ->del ('Auth ' );
598
+ $ this ->Controller ->Session ->delete ('Auth ' );
599
599
600
600
$ this ->Controller ->data ['AuthUser ' ]['username ' ] = 'now() or 1=1 -- ' ;
601
601
$ this ->Controller ->data ['AuthUser ' ]['password ' ] = '' ;
@@ -604,7 +604,7 @@ function testLogin() {
604
604
605
605
$ user = $ this ->Controller ->Auth ->user ();
606
606
$ this ->assertFalse ($ user );
607
- $ this ->Controller ->Session ->del ('Auth ' );
607
+ $ this ->Controller ->Session ->delete ('Auth ' );
608
608
609
609
$ this ->Controller ->data ['AuthUser ' ]['username ' ] = 'now() or 1=1 # something ' ;
610
610
$ this ->Controller ->data ['AuthUser ' ]['password ' ] = '' ;
@@ -613,7 +613,7 @@ function testLogin() {
613
613
614
614
$ user = $ this ->Controller ->Auth ->user ();
615
615
$ this ->assertFalse ($ user );
616
- $ this ->Controller ->Session ->del ('Auth ' );
616
+ $ this ->Controller ->Session ->delete ('Auth ' );
617
617
618
618
$ this ->Controller ->Auth ->userModel = 'UuidUser ' ;
619
619
$ this ->Controller ->Auth ->login ('47c36f9c-bc00-4d17-9626-4e183ca6822b ' );
@@ -623,7 +623,7 @@ function testLogin() {
623
623
'id ' => '47c36f9c-bc00-4d17-9626-4e183ca6822b ' , 'title ' => 'Unique record 1 ' , 'count ' => 2 , 'created ' => '2008-03-13 01:16:23 ' , 'updated ' => '2008-03-13 01:18:31 '
624
624
));
625
625
$ this ->assertEqual ($ user , $ expected );
626
- $ this ->Controller ->Session ->del ('Auth ' );
626
+ $ this ->Controller ->Session ->delete ('Auth ' );
627
627
}
628
628
629
629
/**
@@ -642,7 +642,7 @@ function testAuthorizeFalse() {
642
642
$ result = $ this ->Controller ->Auth ->startup ($ this ->Controller );
643
643
$ this ->assertTrue ($ result );
644
644
645
- $ this ->Controller ->Session ->del ('Auth ' );
645
+ $ this ->Controller ->Session ->delete ('Auth ' );
646
646
$ result = $ this ->Controller ->Auth ->startup ($ this ->Controller );
647
647
$ this ->assertFalse ($ result );
648
648
$ this ->assertTrue ($ this ->Controller ->Session ->check ('Message.auth ' ));
@@ -673,7 +673,7 @@ function testAuthorizeController() {
673
673
$ this ->assertTrue ($ this ->Controller ->Session ->check ('Message.auth ' ));
674
674
$ this ->assertFalse ($ result );
675
675
676
- $ this ->Controller ->Session ->del ('Auth ' );
676
+ $ this ->Controller ->Session ->delete ('Auth ' );
677
677
}
678
678
679
679
/**
@@ -695,7 +695,7 @@ function testAuthorizeModel() {
695
695
$ result = $ this ->Controller ->Auth ->startup ($ this ->Controller );
696
696
$ this ->assertTrue ($ result );
697
697
698
- $ this ->Controller ->Session ->del ('Auth ' );
698
+ $ this ->Controller ->Session ->delete ('Auth ' );
699
699
$ this ->Controller ->Auth ->startup ($ this ->Controller );
700
700
$ this ->assertTrue ($ this ->Controller ->Session ->check ('Message.auth ' ));
701
701
$ result = $ this ->Controller ->Auth ->isAuthorized ();
@@ -759,7 +759,7 @@ function testAuthorizeCrud() {
759
759
$ this ->Controller ->Auth ->startup ($ this ->Controller );
760
760
$ this ->assertTrue ($ this ->Controller ->Auth ->isAuthorized ());
761
761
762
- $ this ->Controller ->Session ->del ('Auth ' );
762
+ $ this ->Controller ->Session ->delete ('Auth ' );
763
763
$ this ->Controller ->Auth ->startup ($ this ->Controller );
764
764
$ this ->assertTrue ($ this ->Controller ->Session ->check ('Message.auth ' ));
765
765
}
@@ -932,7 +932,7 @@ function testLoginRedirect() {
932
932
$ expected = Router::normalize ($ this ->Controller ->Auth ->loginRedirect );
933
933
$ this ->assertEqual ($ expected , $ this ->Controller ->Auth ->redirect ());
934
934
935
- $ this ->Controller ->Session ->del ('Auth ' );
935
+ $ this ->Controller ->Session ->delete ('Auth ' );
936
936
937
937
$ this ->Controller ->params ['url ' ]['url ' ] = 'admin/ ' ;
938
938
$ this ->Controller ->Auth ->initialize ($ this ->Controller );
@@ -943,7 +943,7 @@ function testLoginRedirect() {
943
943
$ this ->assertTrue ($ this ->Controller ->Session ->check ('Message.auth ' ));
944
944
$ this ->assertEqual ($ expected , $ this ->Controller ->Auth ->redirect ());
945
945
946
- $ this ->Controller ->Session ->del ('Auth ' );
946
+ $ this ->Controller ->Session ->delete ('Auth ' );
947
947
948
948
//empty referer no session
949
949
$ _SERVER ['HTTP_REFERER ' ] = false ;
@@ -971,7 +971,7 @@ function testLoginRedirect() {
971
971
$ this ->assertEqual ($ expected , $ this ->Controller ->testUrl );
972
972
973
973
974
- $ this ->Controller ->Session ->del ('Auth ' );
974
+ $ this ->Controller ->Session ->delete ('Auth ' );
975
975
$ _SERVER ['HTTP_REFERER ' ] = Router::url ('/admin/ ' , true );
976
976
977
977
$ this ->Controller ->Session ->write ('Auth ' , array (
@@ -988,7 +988,7 @@ function testLoginRedirect() {
988
988
989
989
//Ticket #4750
990
990
//named params
991
- $ this ->Controller ->Session ->del ('Auth ' );
991
+ $ this ->Controller ->Session ->delete ('Auth ' );
992
992
$ url = '/posts/index/year:2008/month:feb ' ;
993
993
$ this ->Controller ->params = Router::parse ($ url );
994
994
$ this ->Controller ->params ['url ' ]['url ' ] = Router::normalize ($ url );
@@ -1000,7 +1000,7 @@ function testLoginRedirect() {
1000
1000
$ this ->assertEqual ($ expected , $ this ->Controller ->Session ->read ('Auth.redirect ' ));
1001
1001
1002
1002
//passed args
1003
- $ this ->Controller ->Session ->del ('Auth ' );
1003
+ $ this ->Controller ->Session ->delete ('Auth ' );
1004
1004
$ url = '/posts/view/1 ' ;
1005
1005
$ this ->Controller ->params = Router::parse ($ url );
1006
1006
$ this ->Controller ->params ['url ' ]['url ' ] = Router::normalize ($ url );
@@ -1018,7 +1018,7 @@ function testLoginRedirect() {
1018
1018
'print ' => 'true ' ,
1019
1019
'refer ' => 'menu '
1020
1020
);
1021
- $ this ->Controller ->Session ->del ('Auth ' );
1021
+ $ this ->Controller ->Session ->delete ('Auth ' );
1022
1022
$ url = '/posts/index/29?print=true&refer=menu ' ;
1023
1023
$ this ->Controller ->params = Dispatcher::parseParams ($ url );
1024
1024
$ this ->Controller ->Auth ->initialize ($ this ->Controller );
@@ -1034,7 +1034,7 @@ function testLoginRedirect() {
1034
1034
'refer ' => 'menu ' ,
1035
1035
'ext ' => 'html '
1036
1036
);
1037
- $ this ->Controller ->Session ->del ('Auth ' );
1037
+ $ this ->Controller ->Session ->delete ('Auth ' );
1038
1038
$ url = '/posts/index/29?print=true&refer=menu ' ;
1039
1039
$ this ->Controller ->params = Dispatcher::parseParams ($ url );
1040
1040
$ this ->Controller ->Auth ->initialize ($ this ->Controller );
@@ -1047,7 +1047,7 @@ function testLoginRedirect() {
1047
1047
1048
1048
//external authed action
1049
1049
$ _SERVER ['HTTP_REFERER ' ] = 'http://webmail.example.com/view/message ' ;
1050
- $ this ->Controller ->Session ->del ('Auth ' );
1050
+ $ this ->Controller ->Session ->delete ('Auth ' );
1051
1051
$ url = '/posts/edit/1 ' ;
1052
1052
$ this ->Controller ->params = Router::parse ($ url );
1053
1053
$ this ->Controller ->params ['url ' ]['url ' ] = Router::normalize ($ url );
@@ -1060,7 +1060,7 @@ function testLoginRedirect() {
1060
1060
1061
1061
//external direct login link
1062
1062
$ _SERVER ['HTTP_REFERER ' ] = 'http://webmail.example.com/view/message ' ;
1063
- $ this ->Controller ->Session ->del ('Auth ' );
1063
+ $ this ->Controller ->Session ->delete ('Auth ' );
1064
1064
$ url = '/AuthTest/login ' ;
1065
1065
$ this ->Controller ->params = Router::parse ($ url );
1066
1066
$ this ->Controller ->params ['url ' ]['url ' ] = Router::normalize ($ url );
@@ -1072,7 +1072,7 @@ function testLoginRedirect() {
1072
1072
$ this ->assertEqual ($ expected , $ this ->Controller ->Session ->read ('Auth.redirect ' ));
1073
1073
1074
1074
$ _SERVER ['HTTP_REFERER ' ] = $ backup ;
1075
- $ this ->Controller ->Session ->del ('Auth ' );
1075
+ $ this ->Controller ->Session ->delete ('Auth ' );
1076
1076
}
1077
1077
1078
1078
/**
@@ -1082,7 +1082,7 @@ function testLoginRedirect() {
1082
1082
* @return void
1083
1083
**/
1084
1084
function testNoRedirectOn404 () {
1085
- $ this ->Controller ->Session ->del ('Auth ' );
1085
+ $ this ->Controller ->Session ->delete ('Auth ' );
1086
1086
$ this ->Controller ->Auth ->initialize ($ this ->Controller );
1087
1087
$ this ->Controller ->params = Router::parse ('auth_test/something_totally_wrong ' );
1088
1088
$ result = $ this ->Controller ->Auth ->startup ($ this ->Controller );
@@ -1117,7 +1117,7 @@ function testEmptyUsernameOrPassword() {
1117
1117
$ user = $ this ->Controller ->Auth ->user ();
1118
1118
$ this ->assertTrue ($ this ->Controller ->Session ->check ('Message.auth ' ));
1119
1119
$ this ->assertEqual ($ user , false );
1120
- $ this ->Controller ->Session ->del ('Auth ' );
1120
+ $ this ->Controller ->Session ->delete ('Auth ' );
1121
1121
}
1122
1122
1123
1123
/**
@@ -1142,7 +1142,7 @@ function testInjection() {
1142
1142
$ this ->Controller ->Auth ->startup ($ this ->Controller );
1143
1143
$ this ->assertTrue (is_array ($ this ->Controller ->Auth ->user ()));
1144
1144
1145
- $ this ->Controller ->Session ->del ($ this ->Controller ->Auth ->sessionKey );
1145
+ $ this ->Controller ->Session ->delete ($ this ->Controller ->Auth ->sessionKey );
1146
1146
1147
1147
$ this ->Controller ->data ['AuthUser ' ]['username ' ] = 'nate ' ;
1148
1148
$ this ->Controller ->data ['AuthUser ' ]['password ' ] = 'cake1 ' ;
@@ -1154,7 +1154,7 @@ function testInjection() {
1154
1154
$ this ->Controller ->Auth ->startup ($ this ->Controller );
1155
1155
$ this ->assertTrue (is_null ($ this ->Controller ->Auth ->user ()));
1156
1156
1157
- $ this ->Controller ->Session ->del ($ this ->Controller ->Auth ->sessionKey );
1157
+ $ this ->Controller ->Session ->delete ($ this ->Controller ->Auth ->sessionKey );
1158
1158
1159
1159
$ this ->Controller ->data ['AuthUser ' ]['username ' ] = '> n ' ;
1160
1160
$ this ->Controller ->data ['AuthUser ' ]['password ' ] = 'cake ' ;
@@ -1251,7 +1251,7 @@ function testCustomRoute() {
1251
1251
$ user = $ this ->Controller ->Auth ->user ();
1252
1252
$ this ->assertTrue (!!$ user );
1253
1253
1254
- $ this ->Controller ->Session ->del ('Auth ' );
1254
+ $ this ->Controller ->Session ->delete ('Auth ' );
1255
1255
Router::reload ();
1256
1256
Router::connect ('/ ' , array ('controller ' => 'people ' , 'action ' => 'login ' ));
1257
1257
$ url = '/ ' ;
0 commit comments