mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Merge pull request #353 from shama/patch-cakesession-test-fix
Fix CakeSession test cases
This commit is contained in:
commit
dde798284b
1 changed files with 2 additions and 1 deletions
|
@ -382,7 +382,7 @@ class CakeSessionTest extends CakeTestCase {
|
|||
*/
|
||||
public function testCheckKeyWithSpaces() {
|
||||
$this->assertTrue(TestCakeSession::write('Session Test', "test"));
|
||||
$this->assertEquals('test', TestCakeSession::check('Session Test'));
|
||||
$this->assertTrue(TestCakeSession::check('Session Test'));
|
||||
TestCakeSession::delete('Session Test');
|
||||
|
||||
$this->assertTrue(TestCakeSession::write('Session Test.Test Case', "test"));
|
||||
|
@ -526,6 +526,7 @@ class CakeSessionTest extends CakeTestCase {
|
|||
App::build(array(
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
), true);
|
||||
CakePlugin::load('TestPlugin');
|
||||
|
||||
Configure::write('Session', array(
|
||||
'defaults' => 'cake',
|
||||
|
|
Loading…
Add table
Reference in a new issue