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

Commit 0b3b78f

Browse files
author
sathielemann
committed
Remove test which doesn't make sense any longer. DeepL seams to be able to translate with the given configuration.
1 parent 497444f commit 0b3b78f

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/integration/DeepLApiTest.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -301,31 +301,6 @@ public function testTranslateFormality()
301301
self::assertEquals($expectedText, $translatedText[0]['text']);
302302
}
303303

304-
/**
305-
* Test translate() $formality
306-
*/
307-
public function testTranslateFormalityFail()
308-
{
309-
if (self::$authKey === false) {
310-
self::markTestSkipped('DeepL Auth Key (DEEPL_AUTH_KEY) is not configured.');
311-
}
312-
313-
$deepl = new DeepL(self::$authKey);
314-
$englishText = '<strong>text to do not translate</strong><p>please translate this text</p>';
315-
316-
$this->expectException('\BabyMarkt\DeepL\DeepLException');
317-
318-
$deepl->translate(
319-
$englishText,
320-
'en', //$sourceLanguage
321-
'es', //$destinationLanguage
322-
null, //$tagHandling
323-
null, //$ignoreTags
324-
'more' //$formality
325-
);
326-
}
327-
328-
329304
/**
330305
* Test to Test the Tag-Handling.
331306
*/

0 commit comments

Comments
 (0)