summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-19 13:59:08 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-04-19 13:59:08 +0200
commita4cb83df272a3c98a439d2e999095034f730acc5 (patch)
treea42eb66250b75523ee4331d7aa7d17b8ccbd772d /tests
parentd686b19a16a45367bbe30665f78acd475d226d5c (diff)
downloadnextcloud-server-a4cb83df272a3c98a439d2e999095034f730acc5.tar.gz
nextcloud-server-a4cb83df272a3c98a439d2e999095034f730acc5.zip
Add tests for special domain name
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/DB/ConnectionFactoryTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/DB/ConnectionFactoryTest.php b/tests/lib/DB/ConnectionFactoryTest.php
index 062a55b5d68..6a1a9b31c4b 100644
--- a/tests/lib/DB/ConnectionFactoryTest.php
+++ b/tests/lib/DB/ConnectionFactoryTest.php
@@ -31,9 +31,11 @@ class ConnectionFactoryTest extends TestCase {
return [
['127.0.0.1', ['host' => '127.0.0.1']],
['db.example.org', ['host' => 'db.example.org']],
+ ['unix', ['host' => 'unix']],
['[::1]', ['host' => '[::1]']],
['127.0.0.1:3306', ['host' => '127.0.0.1', 'port' => 3306]],
['db.example.org:3306', ['host' => 'db.example.org', 'port' => 3306]],
+ ['unix:3306', ['host' => 'unix', 'port' => 3306]],
['[::1]:3306', ['host' => '[::1]', 'port' => 3306]],
['unix:/socket', ['host' => 'unix', 'unix_socket' => '/socket']],
];