Browse Source
Do not skip when mysql uses utf8mb4
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/1773/head
Joas Schilling
9 years ago
committed by
Morris Jobke
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with
2 additions and
1 deletions
-
tests/lib/Files/Cache/CacheTest.php
|
|
|
@ -113,7 +113,8 @@ class CacheTest extends \Test\TestCase { |
|
|
|
public function testFolder($folder) { |
|
|
|
if(strpos($folder, 'F09F9890')) { |
|
|
|
// 4 byte UTF doesn't work on mysql
|
|
|
|
if(\OC::$server->getDatabaseConnection()->getDatabasePlatform() instanceof MySqlPlatform) { |
|
|
|
$params = \OC::$server->getDatabaseConnection()->getParams(); |
|
|
|
if(\OC::$server->getDatabaseConnection()->getDatabasePlatform() instanceof MySqlPlatform && $params['charset'] !== 'utf8mb4') { |
|
|
|
$this->markTestSkipped('MySQL doesn\'t support 4 byte UTF-8'); |
|
|
|
} |
|
|
|
} |
|
|
|
|