diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-09-10 21:52:48 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-09-10 21:52:48 +0300 |
commit | 38fda677bdfbfbe4314b2853b852a67598b7f2f2 (patch) | |
tree | 7a3ee17b6e7311b9add61411a3ea35233122e074 /test | |
parent | 94e714a49ba306461d2935906e6fc1a7b8f4addb (diff) |
Extract Processes class from ProcessesController
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/Controllers/Server/Status/ProcessesControllerTest.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/test/classes/Controllers/Server/Status/ProcessesControllerTest.php b/test/classes/Controllers/Server/Status/ProcessesControllerTest.php index cae09c768f..af8585c206 100644 --- a/test/classes/Controllers/Server/Status/ProcessesControllerTest.php +++ b/test/classes/Controllers/Server/Status/ProcessesControllerTest.php @@ -6,6 +6,7 @@ namespace PhpMyAdmin\Tests\Controllers\Server\Status; use PhpMyAdmin\Controllers\Server\Status\ProcessesController; use PhpMyAdmin\Server\Status\Data; +use PhpMyAdmin\Server\Status\Processes; use PhpMyAdmin\Template; use PhpMyAdmin\Tests\AbstractTestCase; use PhpMyAdmin\Tests\Stubs\ResponseRenderer; @@ -43,7 +44,13 @@ class ProcessesControllerTest extends AbstractTestCase { $response = new ResponseRenderer(); - $controller = new ProcessesController($response, new Template(), $this->data, $GLOBALS['dbi']); + $controller = new ProcessesController( + $response, + new Template(), + $this->data, + $GLOBALS['dbi'], + new Processes($GLOBALS['dbi']) + ); $this->dummyDbi->addSelectDb('mysql'); $controller->index(); @@ -161,7 +168,13 @@ class ProcessesControllerTest extends AbstractTestCase $response = new ResponseRenderer(); $response->setAjax(true); - $controller = new ProcessesController($response, new Template(), $this->data, $GLOBALS['dbi']); + $controller = new ProcessesController( + $response, + new Template(), + $this->data, + $GLOBALS['dbi'], + new Processes($GLOBALS['dbi']) + ); $_POST['full'] = '1'; $_POST['order_by_field'] = 'process'; |