diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-07-21 02:54:07 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-07-21 02:54:07 +0300 |
commit | dbe3db564e53758751c388e295f79474e4638d2e (patch) | |
tree | 2ccf1cfd0ccec53859dc8f92205676eb46ba0cd7 /test | |
parent | fda386a998ad5a64c109797e6ac9d70d8d718c96 (diff) |
Fix Enum/Set editor error when creating a new column
Fixes #17551
https://github.com/phpmyadmin/phpmyadmin/issues/17551#issuecomment-1136074722
Co-authored-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/Controllers/Table/Structure/ChangeControllerTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/classes/Controllers/Table/Structure/ChangeControllerTest.php b/test/classes/Controllers/Table/Structure/ChangeControllerTest.php index 4d37dde76f..a395226662 100644 --- a/test/classes/Controllers/Table/Structure/ChangeControllerTest.php +++ b/test/classes/Controllers/Table/Structure/ChangeControllerTest.php @@ -44,6 +44,7 @@ class ChangeControllerTest extends AbstractTestCase ); $method->invokeArgs($ctrl, [null]); + $actual = $response->getHTMLResult(); $this->assertStringContainsString( '<input id="field_0_1"' . "\n" . ' type="text"' . "\n" @@ -53,7 +54,8 @@ class ChangeControllerTest extends AbstractTestCase . ' title="Column"' . "\n" . ' size="10"' . "\n" . ' value="_id">' . "\n", - $response->getHTMLResult() + $actual ); + $this->assertStringContainsString('id="enumEditorModal"', $actual); } } |