summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-06-30 09:06:19 +0200
committerGitHub <noreply@github.com>2016-06-30 09:06:19 +0200
commit3acdc1339d0d7b04357bc05013a0f13521792961 (patch)
tree00ec686ded1b86a19dd8212792b4509920dd46fa /tests
parent83a046a0fb2d35267ff6866d431b77f053ef8947 (diff)
parent01829e8d7cf42b54308046e10a62babe39111ea6 (diff)
downloadnextcloud-server-3acdc1339d0d7b04357bc05013a0f13521792961.tar.gz
nextcloud-server-3acdc1339d0d7b04357bc05013a0f13521792961.zip
Merge pull request #206 from nextcloud/ci-mysql
Add mysql job to CI
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Cache/CacheTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/Files/Cache/CacheTest.php b/tests/lib/Files/Cache/CacheTest.php
index 615bb32f62c..bfc3c1be7b8 100644
--- a/tests/lib/Files/Cache/CacheTest.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -9,6 +9,8 @@
namespace Test\Files\Cache;
+use Doctrine\DBAL\Platforms\MySqlPlatform;
+
class LongId extends \OC\Files\Storage\Temporary {
public function getId() {
return 'long:' . str_repeat('foo', 50) . parent::getId();
@@ -108,6 +110,12 @@ class CacheTest extends \Test\TestCase {
* @dataProvider folderDataProvider
*/
public function testFolder($folder) {
+ if(strpos($folder, 'F09F9890')) {
+ // 4 byte UTF doesn't work on mysql
+ if(\OC::$server->getDatabaseConnection()->getDatabasePlatform() instanceof MySqlPlatform) {
+ $this->markTestSkipped('MySQL doesn\'t support 4 byte UTF-8');
+ }
+ }
$file2 = $folder.'/bar';
$file3 = $folder.'/foo';
$data1 = array('size' => 100, 'mtime' => 50, 'mimetype' => 'httpd/unix-directory');