Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 97d8c0e

Browse files
author
sathielemann
committed
Fix integration tests which expect specific return values from DeepL.
1 parent 1eea60f commit 97d8c0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/DeepLApiTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testTranslateSuccess()
6868
$deepl = new DeepL(self::$authKey);
6969

7070
$germanText = 'Hallo Welt';
71-
$expectedText = 'Hello World';
71+
$expectedText = 'Hello world';
7272

7373
$translatedText = $deepl->translate($germanText);
7474

@@ -87,7 +87,7 @@ public function testTranslateV1Success()
8787
$deepl = new DeepL(self::$authKey, 1);
8888

8989
$germanText = 'Hallo Welt';
90-
$expectedText = 'Hello World';
90+
$expectedText = 'Hello world';
9191

9292
$translatedText = $deepl->translate($germanText);
9393

@@ -288,7 +288,7 @@ public function testTranslateFormality()
288288
$deepl = new DeepL(self::$authKey);
289289

290290
$englishText = '<strong>text to do not translate</strong><p>please translate this text</p>';
291-
$expectedText = '<stark>nicht zu übersetzender Text</stark><p>bitte diesen Text übersetzen</p>';
291+
$expectedText = '<strong>Nicht zu übersetzender Text</strong><p>Bitte übersetze diesen Text</p>';
292292
$translatedText = $deepl->translate(
293293
$englishText,
294294
'en', //$sourceLanguage
@@ -348,7 +348,7 @@ public function testTranslateWithHTML()
348348
),
349349
array(
350350
'detected_source_language' => "EN",
351-
'text' => "Ein weiterer Text neue Zeile <p>dies ist ein Absatz</p>",
351+
'text' => "Ein weiterer Text<br>neue Zeile <p>dies ist ein Absatz</p></br> ",
352352
),
353353

354354
);

0 commit comments

Comments
 (0)