mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-17 06:59:51 +00:00
Fix tests to remove checking of session ID directly on Session Helper.
This commit is contained in:
parent
17688a6002
commit
04b67e59fc
2 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@ class CakeSession extends Object {
|
||||||
*/
|
*/
|
||||||
public static function error() {
|
public static function error() {
|
||||||
if (self::$lastError) {
|
if (self::$lastError) {
|
||||||
return self::$__error(self::$lastError);
|
return self::__error(self::$lastError);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,7 +163,7 @@ class SessionHelperTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
function testID() {
|
function testID() {
|
||||||
$id = session_id();
|
$id = session_id();
|
||||||
$result = $this->Session->id();
|
$result = CakeSession::id();
|
||||||
$this->assertEqual($id, $result);
|
$this->assertEqual($id, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue