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

Commit

Permalink
Remove test which doesn't make sense any longer. DeepL seams to be ab…
Browse files Browse the repository at this point in the history
…le to translate with the given configuration.
  • Loading branch information
sathielemann committed May 25, 2021
1 parent 497444f commit 0b3b78f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions tests/integration/DeepLApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<strong>text to do not translate</strong><p>please translate this text</p>';

$this->expectException('\BabyMarkt\DeepL\DeepLException');

$deepl->translate(
$englishText,
'en', //$sourceLanguage
'es', //$destinationLanguage
null, //$tagHandling
null, //$ignoreTags
'more' //$formality
);
}


/**
* Test to Test the Tag-Handling.
*/
Expand Down

0 comments on commit 0b3b78f

Please sign in to comment.