1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Fixes faulty parsing of _GET when debug is activated. Pref editor will now use var_export on arrays when debug mode is active.

This commit is contained in:
Cameron
2021-02-06 12:48:19 -08:00
parent 10ca7acdd5
commit 0fd7ee6482
3 changed files with 58 additions and 20 deletions

View File

@@ -1848,13 +1848,24 @@ class e107Test extends \Codeception\Test\Unit
$res = null;
$this->assertTrue($res);
}
*/
public function testSet_request()
{
$res = null;
$this->assertTrue($res);
}
$tests = array(
'mode=main&action=create' => 'mode=main&action=create',
'[debug=counts!]mode=pref_editor&type=vstore' => 'mode=pref_editor&type=vstore',
// 'searchquery=šýá&mode=main' => 'searchquery=šýá&mode=main', //FIXME Fails.
);
foreach($tests as $input => $expected)
{
$result = $this->e107->set_request(true, $input);
$this->assertSame($expected, $result);
}
}
/*
public function testCanCache()
{
$res = null;