Skip to content
Permalink
Browse files

Fix routines tests

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information...
madhuracj authored and mauriciofauth committed Jul 15, 2018
1 parent d927998 commit 3ac68d2edaafea38c3c45e364933456540603c09
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/classes/Rte/RoutinesTest.php
@@ -62,12 +62,12 @@ protected function setUp()
*/
public function testGetDataFromRequest($in, $out)
{
global $_REQUEST;
global $_POST;
unset($_REQUEST);
unset($_POST);
foreach ($in as $key => $value) {
if ($value !== '') {
$_REQUEST[$key] = $value;
$_POST[$key] = $value;
}
}
Routines::setGlobals();
@@ -1100,7 +1100,7 @@ public function providerGetExecuteForm2()
*/
public function testGetQueryFromRequest($request, $query, $num_err)
{
global $_REQUEST, $errors, $cfg;
global $_POST, $errors, $cfg;
$cfg['ShowFunctionFields'] = false;
@@ -1125,8 +1125,8 @@ public function testGetQueryFromRequest($request, $query, $num_err)
);
$GLOBALS['dbi'] = $dbi;
unset($_REQUEST);
$_REQUEST = $request;
unset($_POST);
$_POST = $request;
$this->assertEquals($query, Routines::getQueryFromRequest());
$this->assertCount($num_err, $errors);

0 comments on commit 3ac68d2

Please sign in to comment.
You can’t perform that action at this time.