From 5e2f952fe68c4e0522aaddea72659f4e75875170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Fri, 13 May 2022 15:25:17 +0200 Subject: [PATCH] fix: update test to reflect changes to slug transliteration --- .../core/tests/integration/api/discussions/CreateTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/core/tests/integration/api/discussions/CreateTest.php b/framework/core/tests/integration/api/discussions/CreateTest.php index b3ad68f6f..9faa35297 100644 --- a/framework/core/tests/integration/api/discussions/CreateTest.php +++ b/framework/core/tests/integration/api/discussions/CreateTest.php @@ -138,7 +138,8 @@ class CreateTest extends TestCase */ public function can_create_discussion_with_current_lang_slug_transliteration() { - $this->app()->getContainer()->make('flarum.locales')->setLocale('zh'); + // Forum default is traditional Chinese. + $this->app()->getContainer()->make('flarum.settings')->set('default_locale', 'zh'); $response = $this->send( $this->request('POST', '/api/discussions', [