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:
@@ -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;
|
||||
}
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user