mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Making the id() test pass.
This commit is contained in:
parent
8eebdffcbb
commit
106c1185b4
1 changed files with 4 additions and 2 deletions
|
@ -305,13 +305,15 @@ class CakeSessionTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testId() {
|
||||
TestCakeSession::destroy();
|
||||
|
||||
$result = TestCakeSession::id();
|
||||
$expected = session_id();
|
||||
$this->assertEqual($result, $expected);
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
TestCakeSession::id('MySessionId');
|
||||
$result = TestCakeSession::id();
|
||||
$this->assertEqual($result, 'MySessionId');
|
||||
$this->assertEquals('MySessionId', $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue