Visitar URL original
Fix failing tests · phpmyadmin/phpmyadmin@66a25e8 · GitHub
Skip to content

Commit 66a25e8

Browse files
committed
Fix failing tests
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 00a4480 commit 66a25e8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎js/src/designer/move.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1938,7 +1938,7 @@ DesignerMove.enablePageContentEvents = function () {
19381938
$(document).on('mousedown', function (e) {
19391939
DesignerMove.mouseDown(e);
19401940
});
1941-
$(document).on('mouseup', function (e) {
1941+
$(document).on('mouseup', function () {
19421942
DesignerMove.mouseUp();
19431943
});
19441944
$(document).on('mousemove', function (e) {

‎libraries/classes/Normalization.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ private function findDistinctValuesCount(array $columns, $table): array
10561056
continue;
10571057
}
10581058

1059-
$result[$column] = (int) $res[0][$column . '_cnt'];
1059+
$result[$column] = (int) ($res[0][$column . '_cnt'] ?? null);
10601060
}
10611061

10621062
return $result;

‎test/classes/Stubs/DbiDummy.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ private function init(): void
13681368
],
13691369
[
13701370
'query' => 'SELECT COUNT(*) FROM `pma_test`.`table1`',
1371-
'result' => [[0]],
1371+
'result' => [],
13721372
],
13731373
[
13741374
'query' => 'SELECT `PRIVILEGE_TYPE` FROM `INFORMATION_SCHEMA`.'

0 commit comments

Comments
 (0)