From 1ce894a50c2720a5881b22533d730062b7b4b426 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Thu, 13 Jan 2022 11:08:52 -0300 Subject: Disable reactions if database don't support utf8mb4 Fix column size Signed-off-by: Vitor Mattos --- tests/lib/Comments/ManagerTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests') 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'); } } -- cgit v1.2.3