diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-07-03 19:01:00 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-07-03 19:01:00 +0200 |
commit | b5545b81c6c4a74d06f73299b906e099dcff9cdb (patch) | |
tree | 97c34aa2b077980901d89b19f495547d79dda393 /tests | |
parent | 19a6dc5420d3a27c50590b2f060700edff2ef73e (diff) | |
download | nextcloud-server-b5545b81c6c4a74d06f73299b906e099dcff9cdb.tar.gz nextcloud-server-b5545b81c6c4a74d06f73299b906e099dcff9cdb.zip |
make search case insensitive on postgres and oracle
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/cache/cache.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php index 8ed2ecabd98..bf17f7a1620 100644 --- a/tests/lib/files/cache/cache.php +++ b/tests/lib/files/cache/cache.php @@ -239,6 +239,12 @@ class Cache extends \PHPUnit_Framework_TestCase { $this->assertEquals(1, count($this->cache->search('folder%'))); $this->assertEquals(3, count($this->cache->search('%'))); + // case insensitive search should match the same files + $this->assertEquals(2, count($this->cache->search('%Foo%'))); + $this->assertEquals(1, count($this->cache->search('Foo'))); + $this->assertEquals(1, count($this->cache->search('%Folder%'))); + $this->assertEquals(1, count($this->cache->search('Folder%'))); + $this->assertEquals(3, count($this->cache->searchByMime('foo'))); $this->assertEquals(2, count($this->cache->searchByMime('foo/file'))); } |