diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-22 21:24:33 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-22 21:29:03 +0200 |
commit | 1565d82b81ee1f6960033a057260c884036e1159 (patch) | |
tree | fba07f61ff26624486d2589de893305ffba8519b /tests | |
parent | 3c5ac2112257731bb89a16e040563e1dddcef689 (diff) | |
download | nextcloud-server-1565d82b81ee1f6960033a057260c884036e1159.tar.gz nextcloud-server-1565d82b81ee1f6960033a057260c884036e1159.zip |
Use only lower-case letters
Fixes https://github.com/owncloud/core/issues/11239
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/util.php b/tests/lib/util.php index 8964f9f2666..999c62486a7 100644 --- a/tests/lib/util.php +++ b/tests/lib/util.php @@ -116,7 +116,10 @@ class Test_Util extends PHPUnit_Framework_TestCase { function testGetInstanceIdGeneratesValidId() { OC_Config::deleteKey('instanceid'); - $this->assertStringStartsWith('oc', OC_Util::getInstanceId()); + $instanceId = OC_Util::getInstanceId(); + $this->assertStringStartsWith('oc', $instanceId); + $matchesRegex = preg_match('/^[a-z0-9]+$/', $instanceId); + $this->assertSame(1, $matchesRegex); } /** |