Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-12 10:17:45 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-12 10:17:45 +0300
commitb5cac84182000ab4110f142ad55427e5fe97583e (patch)
tree6e6bb9a577a5d5a96fe69c444478e2bfe8ed765d /test
parent4abc2334cc8e4f2ae72284fbc5458ce51d2bd60a (diff)
Fix TableSearchController::_generateWhereClause() test
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/classes/Controllers/Table/TableSearchControllerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/classes/Controllers/Table/TableSearchControllerTest.php b/test/classes/Controllers/Table/TableSearchControllerTest.php
index dfbf8f15fc..d52c896976 100644
--- a/test/classes/Controllers/Table/TableSearchControllerTest.php
+++ b/test/classes/Controllers/Table/TableSearchControllerTest.php
@@ -316,20 +316,20 @@ class TableSearchControllerTest extends PmaTestCase
);
$_POST['criteriaColumnNames'] = array(
- 'b', 'a'
+ 'b', 'a', 'c', 'd'
);
$_POST['criteriaColumnOperators'] = array(
'<=', '=', 'IS NULL', 'IS NOT NULL'
);
$_POST['criteriaValues'] = array(
- '10', '2'
+ '10', '2', '', ''
);
$_POST['criteriaColumnTypes'] = array(
- 'int(11)', 'int(11)'
+ 'int(11)', 'int(11)', 'int(11)', 'int(11)'
);
$result = $method->invoke($ctrl);
$this->assertEquals(
- ' WHERE `b` <= 10 AND `a` = 2',
+ ' WHERE `b` <= 10 AND `a` = 2 AND `c` IS NULL AND `d` IS NOT NULL',
$result
);
}