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
path: root/test
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2018-05-02 13:14:41 +0300
committerMichal Čihař <michal@cihar.com>2018-05-02 13:14:41 +0300
commit35e13eada75b421f04a1a16b97023e18102d0667 (patch)
treed82f5b30f7ab6609c5857da3b8fe50cd27a5c789 /test
parentfac08eb5efc46b8a88ffcd06b4259eb19e8bc703 (diff)
parent8af0343bb288784e4c5bef91a2d84c1df5b97d94 (diff)
Merge branch 'QA_4_8'
Diffstat (limited to 'test')
-rw-r--r--test/classes/DatabaseInterfaceTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/classes/DatabaseInterfaceTest.php b/test/classes/DatabaseInterfaceTest.php
index 134b431cd0..d0648a2c4e 100644
--- a/test/classes/DatabaseInterfaceTest.php
+++ b/test/classes/DatabaseInterfaceTest.php
@@ -150,6 +150,20 @@ class DatabaseInterfaceTest extends PmaTestCase
}
/**
+ * Tests for DBI::postConnectControl() method.
+ *
+ * @return void
+ * @test
+ */
+ public function testPostConnectControl()
+ {
+ $GLOBALS['db'] = '';
+ $GLOBALS['cfg']['Server']['only_db'] = array();
+ $this->_dbi->postConnectControl();
+ $this->assertInstanceOf('PhpMyAdmin\Database\DatabaseList', $GLOBALS['dblist']);
+ }
+
+ /**
* Test for getDbCollation
*
* @return void