diff options
author | Vitor Mattos <vitor@php.rio> | 2022-01-13 17:08:52 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-01-21 14:39:37 +0300 |
commit | 1ce894a50c2720a5881b22533d730062b7b4b426 (patch) | |
tree | 75d674542d06cc47be71dc89a316d9e326964e1d /tests/lib/Comments/ManagerTest.php | |
parent | 52affa9ddd422fec22c4275b307fc87e5f91059f (diff) |
Disable reactions if database don't support utf8mb4
Fix column size
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests/lib/Comments/ManagerTest.php')
-rw-r--r-- | tests/lib/Comments/ManagerTest.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index e588630a483..2a837a02abf 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -2,7 +2,6 @@ namespace Test\Comments; -use Doctrine\DBAL\Platforms\MySQLPlatform; use OC\Comments\Comment; use OC\Comments\Manager; use OCP\AppFramework\Utility\ITimeFactory; @@ -876,9 +875,7 @@ class ManagerTest extends TestCase { } private function skipIfNotSupport4ByteUTF() { - // 4 byte UTF doesn't work on mysql - $params = \OC::$server->get(\OC\DB\Connection::class)->getParams(); - if (\OC::$server->getDatabaseConnection()->getDatabasePlatform() instanceof MySQLPlatform && $params['charset'] !== 'utf8mb4') { + if (!$this->getManager()->supportReactions()) { $this->markTestSkipped('MySQL doesn\'t support 4 byte UTF-8'); } } |