From 0b3b78f1a3d4fca0915000ae2432fcc1b3ceb0af Mon Sep 17 00:00:00 2001 From: sathielemann Date: Tue, 25 May 2021 18:02:08 +0200 Subject: [PATCH] Remove test which doesn't make sense any longer. DeepL seams to be able to translate with the given configuration. --- tests/integration/DeepLApiTest.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/tests/integration/DeepLApiTest.php b/tests/integration/DeepLApiTest.php index c06e53d..6af78cc 100644 --- a/tests/integration/DeepLApiTest.php +++ b/tests/integration/DeepLApiTest.php @@ -301,31 +301,6 @@ public function testTranslateFormality() self::assertEquals($expectedText, $translatedText[0]['text']); } - /** - * Test translate() $formality - */ - public function testTranslateFormalityFail() - { - if (self::$authKey === false) { - self::markTestSkipped('DeepL Auth Key (DEEPL_AUTH_KEY) is not configured.'); - } - - $deepl = new DeepL(self::$authKey); - $englishText = 'text to do not translate

please translate this text

'; - - $this->expectException('\BabyMarkt\DeepL\DeepLException'); - - $deepl->translate( - $englishText, - 'en', //$sourceLanguage - 'es', //$destinationLanguage - null, //$tagHandling - null, //$ignoreTags - 'more' //$formality - ); - } - - /** * Test to Test the Tag-Handling. */