diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-09-23 12:16:58 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-09-23 12:16:58 +0200 |
commit | 42fe0b9e0865cfa81edae922e77144e789e52447 (patch) | |
tree | d4577dba6dba106e1590c9c2b20166aa1a1ac957 /tests | |
parent | 5d977f97b0e0564e3922665530ea468ec069768d (diff) | |
parent | 1565d82b81ee1f6960033a057260c884036e1159 (diff) | |
download | nextcloud-server-42fe0b9e0865cfa81edae922e77144e789e52447.tar.gz nextcloud-server-42fe0b9e0865cfa81edae922e77144e789e52447.zip |
Merge pull request #11241 from owncloud/use-lower-case
Use only lower-case letters
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); } /** |