Skip to content

Commit 6689e57

Browse files
bastianallgeierdistantnative
authored andcommitted
Use test case from issue
1 parent fc4e8fd commit 6689e57

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

tests/Cms/Languages/LanguageRoutesTest.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ public function setUp(): void
3737
public function testFallback()
3838
{
3939
$app = $this->app->clone([
40+
'languages' => [
41+
[
42+
'code' => 'fr',
43+
'name' => 'French',
44+
'default' => true,
45+
'url' => '/',
46+
],
47+
[
48+
'code' => 'en',
49+
'name' => 'English',
50+
'url' => '/en',
51+
],
52+
],
4053
'site' => [
4154
'children' => [
4255
[
@@ -48,10 +61,10 @@ public function testFallback()
4861
]);
4962

5063
$app->call('notes');
51-
$this->assertSame($app->language()->code(), 'en');
64+
$this->assertSame($app->language()->code(), 'fr');
5265

53-
$app->call('de/notes');
54-
$this->assertSame($app->language()->code(), 'de');
66+
$app->call('en/notes');
67+
$this->assertSame($app->language()->code(), 'en');
5568
}
5669

5770
public function testNotNextWhenFalsyReturn()

0 commit comments

Comments
 (0)