1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

e107::getSession()->set will now accept multi-dimensional key format. Test added. Form-handler PHP8 fix.

This commit is contained in:
Cameron
2021-02-08 11:59:04 -08:00
parent 608c0c57b1
commit 72c54371cc
4 changed files with 58 additions and 16 deletions

View File

@@ -1395,7 +1395,7 @@ class e107Test extends \Codeception\Test\Unit
$all = e107::getAddonConfig('e_url');
foreach($all as $plugin => $var)
{
if($plugin === 'gallery' || $plugin === 'rss_menu') // fixme - sef may be enabled or disabled each time tests are run
if($plugin === 'gallery' || $plugin === 'rss_menu' || $plugin === 'vstore') // fixme - sef may be enabled or disabled each time tests are run
{
continue;
}

View File

@@ -60,6 +60,20 @@
$this->assertEquals($expected, $result);
// Multi-dimensional array support.
$newsess = e107::getSession('newtest');
$newsess->set('customer', array('firstname'=>'Fred'));
$newsess->set('customer/lastname', 'Smith');
$expected = array (
'firstname' => 'Fred',
'lastname' => 'Smith',
);
$result = $newsess->get('customer');
$this->assertSame($expected, $result);
}
/*
public function testGetOption()