+
+
diff --git a/test/classes/SqlQueryFormTest.php b/test/classes/SqlQueryFormTest.php
index 6c6e188cc577..5552ccb7b866 100644
--- a/test/classes/SqlQueryFormTest.php
+++ b/test/classes/SqlQueryFormTest.php
@@ -11,7 +11,7 @@
use PhpMyAdmin\Core;
use PhpMyAdmin\Encoding;
use PhpMyAdmin\SqlQueryForm;
-use PhpMyAdmin\Theme;
+use PhpMyAdmin\Template;
use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
use PHPUnit\Framework\TestCase;
@@ -40,7 +40,7 @@ class SqlQueryFormTest extends TestCase
*/
protected function setUp(): void
{
- $this->sqlQueryForm = new SqlQueryForm();
+ $this->sqlQueryForm = new SqlQueryForm(new Template());
//$GLOBALS
$GLOBALS['max_upload_size'] = 100;
diff --git a/test/classes/TrackingTest.php b/test/classes/TrackingTest.php
index 929c942ad17a..740401054361 100644
--- a/test/classes/TrackingTest.php
+++ b/test/classes/TrackingTest.php
@@ -73,7 +73,8 @@ protected function setUp(): void
$GLOBALS['dbi'] = $dbi;
- $this->tracking = new Tracking(new SqlQueryForm(), new Template(), new Relation($dbi));
+ $template = new Template();
+ $this->tracking = new Tracking(new SqlQueryForm($template), $template, new Relation($dbi));
}
/**
@@ -208,7 +209,8 @@ public function testGetHtmlForMain()
/* Here, we need to overwrite the object written in the setUp function because $dbi object is not the one mocked
at the beginning. */
- $this->tracking = new Tracking(new SqlQueryForm(), new Template(), new Relation($dbi));
+ $template = new Template();
+ $this->tracking = new Tracking(new SqlQueryForm($template), $template, new Relation($dbi));
$html = $this->tracking->getHtmlForMainPage(
$url_params,