Skip to content

Commit 4cc40c3

Browse files
committed
Add test for full URI translation (#50)
1 parent f84d653 commit 4cc40c3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/Unit/Macros/UriTranslationMacroTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,18 @@ public function it_skips_placeholders_in_a_uri()
7878

7979
$this->assertEquals('artikels/{article}', Lang::uri('articles/{article}', 'nl'));
8080
}
81+
82+
/** @test */
83+
public function you_can_translate_a_full_uri()
84+
{
85+
$this->setTranslations([
86+
'nl' => [
87+
'glass' => 'glas',
88+
'products' => 'producten',
89+
'products/glass' => 'producten/glazen'
90+
]
91+
]);
92+
93+
$this->assertEquals('producten/glazen', Lang::uri('products/glass', 'nl'));
94+
}
8195
}

0 commit comments

Comments
 (0)