mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-19 00:29:35 +00:00
Make placeholder generation right
This commit is contained in:
parent
9e095ec1c8
commit
5154752368
3 changed files with 26 additions and 31 deletions
|
|
@ -41,8 +41,8 @@ class RegisterSynonymsAsTranslationParametersTest extends KernelTestCase
|
|||
|
||||
$this->assertIsArray($placeholders);
|
||||
// Curly braces for lowercase versions
|
||||
$this->assertSame('part', $placeholders['{part}']);
|
||||
$this->assertSame('parts', $placeholders['{{part}}']);
|
||||
$this->assertSame('part', $placeholders['[part]']);
|
||||
$this->assertSame('parts', $placeholders['[[part]]']);
|
||||
// Square brackets for capitalized versions (with capital first letter in placeholder)
|
||||
$this->assertSame('Part', $placeholders['[Part]']);
|
||||
$this->assertSame('Parts', $placeholders['[[Part]]']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue