mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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() {
|
||||
if (self::$lastError) {
|
||||
return self::$__error(self::$lastError);
|
||||
return self::__error(self::$lastError);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ class SessionHelperTest extends CakeTestCase {
|
|||
*/
|
||||
function testID() {
|
||||
$id = session_id();
|
||||
$result = $this->Session->id();
|
||||
$result = CakeSession::id();
|
||||
$this->assertEqual($id, $result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue