diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-07-04 15:51:57 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-07-04 15:51:57 +0200 |
commit | aeeae5f1b2d2558fc6e49e64944396eca4a5f9b4 (patch) | |
tree | 14e5fcbb91dbaaec273c083f8e96f74133afb64b /tests | |
parent | 2327d41b11e11ca0553c829b5d7adeb0f000a474 (diff) | |
parent | b5545b81c6c4a74d06f73299b906e099dcff9cdb (diff) | |
download | nextcloud-server-aeeae5f1b2d2558fc6e49e64944396eca4a5f9b4.tar.gz nextcloud-server-aeeae5f1b2d2558fc6e49e64944396eca4a5f9b4.zip |
Merge pull request #8308 from owncloud/case_insensitive_search_oracle
use case insensitive linguistic sort and compare when connecting to 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'))); } |