summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-19 13:58:02 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-04-19 13:58:02 +0200
commitd686b19a16a45367bbe30665f78acd475d226d5c (patch)
treee0ef91bca085544ff8465b91a3bd2a38fd6a346b /tests
parent78ee3abb786eea385b3149279ba6d8903d8a7b1a (diff)
downloadnextcloud-server-d686b19a16a45367bbe30665f78acd475d226d5c.tar.gz
nextcloud-server-d686b19a16a45367bbe30665f78acd475d226d5c.zip
Add tests for domains
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 6b8545ab071..062a55b5d68 100644
--- a/tests/lib/DB/ConnectionFactoryTest.php
+++ b/tests/lib/DB/ConnectionFactoryTest.php
@@ -30,8 +30,10 @@ class ConnectionFactoryTest extends TestCase {
public function splitHostFromPortAndSocketData() {
return [
['127.0.0.1', ['host' => '127.0.0.1']],
+ ['db.example.org', ['host' => 'db.example.org']],
['[::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]],
['[::1]:3306', ['host' => '[::1]', 'port' => 3306]],
['unix:/socket', ['host' => 'unix', 'unix_socket' => '/socket']],
];