summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-07-04 15:51:57 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-07-04 15:51:57 +0200
commitaeeae5f1b2d2558fc6e49e64944396eca4a5f9b4 (patch)
tree14e5fcbb91dbaaec273c083f8e96f74133afb64b /tests
parent2327d41b11e11ca0553c829b5d7adeb0f000a474 (diff)
parentb5545b81c6c4a74d06f73299b906e099dcff9cdb (diff)
downloadnextcloud-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.php6
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')));
}