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
diff options
context:
space:
mode:
Diffstat (limited to 'test/classes/Controllers/Console/Bookmark/RefreshControllerTest.php')
-rw-r--r--test/classes/Controllers/Console/Bookmark/RefreshControllerTest.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/classes/Controllers/Console/Bookmark/RefreshControllerTest.php b/test/classes/Controllers/Console/Bookmark/RefreshControllerTest.php
new file mode 100644
index 0000000000..11f3eabafb
--- /dev/null
+++ b/test/classes/Controllers/Console/Bookmark/RefreshControllerTest.php
@@ -0,0 +1,26 @@
+<?php
+
+declare(strict_types=1);
+
+namespace PhpMyAdmin\Tests\Controllers\Console\Bookmark;
+
+use PhpMyAdmin\Controllers\Console\Bookmark\RefreshController;
+use PhpMyAdmin\Http\ServerRequest;
+use PhpMyAdmin\Template;
+use PhpMyAdmin\Tests\AbstractTestCase;
+use PhpMyAdmin\Tests\Stubs\ResponseRenderer;
+
+/**
+ * @covers \PhpMyAdmin\Controllers\Console\Bookmark\RefreshController
+ */
+class RefreshControllerTest extends AbstractTestCase
+{
+ public function testDefault(): void
+ {
+ $GLOBALS['dbi'] = $this->createDatabaseInterface();
+ $response = new ResponseRenderer();
+ $controller = new RefreshController($response, new Template());
+ $controller($this->createStub(ServerRequest::class));
+ $this->assertSame(['console_message_bookmark' => ''], $response->getJSONResult());
+ }
+}