diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-06-15 02:20:13 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-06-15 02:20:13 +0300 |
commit | d6ee05001aedde179e7fbc7e804ee2ebaafbd936 (patch) | |
tree | 8df3010948e479c00b5c639c7d85358c679edc26 /test | |
parent | e87d1795c9512b15c6b9e0ea536c65a34a16f075 (diff) |
Fix error when clicking New index in sidebar
Fixes https://github.com/phpmyadmin/phpmyadmin/issues/17592
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/FooterTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/classes/FooterTest.php b/test/classes/FooterTest.php index 679734704f..9e66a65955 100644 --- a/test/classes/FooterTest.php +++ b/test/classes/FooterTest.php @@ -7,6 +7,7 @@ namespace PhpMyAdmin\Tests; use ArrayIterator; use PhpMyAdmin\ErrorHandler; use PhpMyAdmin\Footer; +use PhpMyAdmin\Template; use function json_encode; @@ -124,7 +125,7 @@ class FooterTest extends AbstractTestCase $footer = new Footer(); $footer->setAjax(true); $this->assertEquals( - '', + (new Template())->render('modals/index_dialog_modal'), $footer->getDisplay() ); } @@ -163,7 +164,7 @@ class FooterTest extends AbstractTestCase $footer = new Footer(); $footer->setMinimal(); $this->assertEquals( - " </div>\n </body>\n</html>\n", + (new Template())->render('modals/index_dialog_modal') . " </div>\n </body>\n</html>\n", $footer->getDisplay() ); } |