diff options
author | Michal Čihař <michal@cihar.com> | 2018-05-02 13:14:41 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2018-05-02 13:14:41 +0300 |
commit | 35e13eada75b421f04a1a16b97023e18102d0667 (patch) | |
tree | d82f5b30f7ab6609c5857da3b8fe50cd27a5c789 /test | |
parent | fac08eb5efc46b8a88ffcd06b4259eb19e8bc703 (diff) | |
parent | 8af0343bb288784e4c5bef91a2d84c1df5b97d94 (diff) |
Merge branch 'QA_4_8'
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/DatabaseInterfaceTest.php | 14 |
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 |