1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

fix: update test to reflect changes to slug transliteration

This commit is contained in:
Daniël Klabbers
2022-05-13 15:25:17 +02:00
committed by Daniël Klabbers
parent 899b931b89
commit 5e2f952fe6

View File

@@ -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', [