File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,19 @@ public function setUp(): void
37
37
public function testFallback ()
38
38
{
39
39
$ 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
+ ],
40
53
'site ' => [
41
54
'children ' => [
42
55
[
@@ -48,10 +61,10 @@ public function testFallback()
48
61
]);
49
62
50
63
$ app ->call ('notes ' );
51
- $ this ->assertSame ($ app ->language ()->code (), 'en ' );
64
+ $ this ->assertSame ($ app ->language ()->code (), 'fr ' );
52
65
53
- $ app ->call ('de /notes ' );
54
- $ this ->assertSame ($ app ->language ()->code (), 'de ' );
66
+ $ app ->call ('en /notes ' );
67
+ $ this ->assertSame ($ app ->language ()->code (), 'en ' );
55
68
}
56
69
57
70
public function testNotNextWhenFalsyReturn ()
You can’t perform that action at this time.
0 commit comments