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 <mauricio@fauth.dev>2022-08-19 06:31:22 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-08-19 06:31:22 +0300
commit0b2ab57ea22b0386782bd87c433220e2856971e6 (patch)
tree7a1276e862dc6c7204ccfa2b66bcbe429cc111b3 /test
parenta2ef27823e27b612eaabda3e134692a5e5929220 (diff)
parent9c3ce37491a20e06e582aa1c67b4480b5cd9aff2 (diff)
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r--test/classes/InsertEditTest.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/classes/InsertEditTest.php b/test/classes/InsertEditTest.php
index af43d48400..06049ad39a 100644
--- a/test/classes/InsertEditTest.php
+++ b/test/classes/InsertEditTest.php
@@ -2217,6 +2217,30 @@ class InsertEditTest extends AbstractTestCase
],
$result
);
+
+ // Test to see if a field can be set to NULL
+ $result = $this->insertEdit->getQueryValuesForInsertAndUpdateInMultipleEdit(
+ $multi_edit_columns_name,
+ ['on'],
+ '',
+ [''],
+ [],
+ false,
+ [],
+ [],
+ 'NULL',
+ [],
+ '0',
+ []
+ );
+
+ $this->assertEquals(
+ [
+ ['`fld` = NULL'],
+ [],
+ ],
+ $result
+ );
}
/**