Skip to content

Commit 7bb0e1e

Browse files
committed
fix: unit test after translation update
The unit test is getting the text into the original language and the string in Greek was translated now. Was necessary to use raw to don't receive entities and be possible to compare. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 65f0a08 commit 7bb0e1e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/php/Unit/Handler/FooterHandlerTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static function dataGetFooterWithSuccess(): array {
124124
<div style="font-size:8px;" dir="{{ direction }}">
125125
qrcodeSize:{{ qrcodeSize }}<br />
126126
signedBy:{{ signedBy|raw }}<br />
127-
validateIn:{{ validateIn }}<br />
127+
validateIn:{{ validateIn|raw }}<br />
128128
qrcode:{{ qrcode }}
129129
</div>
130130
HTML,
@@ -148,7 +148,7 @@ public static function dataGetFooterWithSuccess(): array {
148148
'footer_template' => <<<'HTML'
149149
<div style="font-size:8px;" dir="{{ direction }}">
150150
signedBy:{{ signedBy|raw }}<br />
151-
validateIn:{{ validateIn }}<br />
151+
validateIn:{{ validateIn|raw }}<br />
152152
</div>
153153
HTML,
154154
],
@@ -169,7 +169,7 @@ public static function dataGetFooterWithSuccess(): array {
169169
'footer_template' => <<<'HTML'
170170
<div style="font-size:8px;" dir="{{ direction }}">
171171
signedBy:{{ signedBy|raw }}<br />
172-
validateIn:{{ validateIn }}<br />
172+
validateIn:{{ validateIn|raw }}<br />
173173
</div>
174174
HTML,
175175
],
@@ -186,17 +186,17 @@ public static function dataGetFooterWithSuccess(): array {
186186
'write_qrcode_on_footer' => false,
187187
'footer_link_to_site' => 'https://libresign.coop',
188188
'footer_signed_by' => 'Το αρχείο υπάρχει',
189-
'footer_validate_in' => 'Validate in %s.',
189+
'footer_validate_in' => 'Επικυρώστε στο %s.',
190190
'footer_template' => <<<'HTML'
191191
<div style="font-size:8px;" dir="{{ direction }}">
192192
signedBy:{{ signedBy|raw }}<br />
193-
validateIn:{{ validateIn }}<br />
193+
validateIn:{{ validateIn|raw }}<br />
194194
</div>
195195
HTML,
196196
],
197197
[
198198
'signedBy' => 'Το αρχείο υπάρχει',
199-
'validateIn' => 'Validate in %s.',
199+
'validateIn' => 'Επικυρώστε στο %s.',
200200
]
201201
],
202202
'he' => [
@@ -211,7 +211,7 @@ public static function dataGetFooterWithSuccess(): array {
211211
'footer_template' => <<<'HTML'
212212
<div style="font-size:8px;" dir="{{ direction }}">
213213
signedBy:{{ signedBy|raw }}<br />
214-
validateIn:{{ validateIn }}<br />
214+
validateIn:{{ validateIn|raw }}<br />
215215
</div>
216216
HTML,
217217
],

0 commit comments

Comments
 (0)