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

Commit 7eb729c

Browse files
authored
Update DeepLTest.php
1 parent bb1b83b commit 7eb729c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/DeepLTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testCheckLanguagesDestinationLanguageException()
104104
*/
105105
public function testBuildUrl()
106106
{
107-
$expectedString = 'https://api.deepl.com/v1/translate?auth_key=123456&source_lang=de&target_lang=en';
107+
$expectedString = 'https://api.deepl.com/v1/translate?auth_key=123456&source_lang=de&target_lang=en&formality=default';
108108

109109
$authKey = '123456';
110110
$deepl = new DeepL($authKey);
@@ -122,7 +122,7 @@ public function testBuildUrl()
122122
public function testBuildUrlWithTags()
123123
{
124124
$expectedString = 'https://api.deepl.com';
125-
$expectedString .= '/v1/translate?auth_key=123456&source_lang=de&target_lang=en&tag_handling=xml&ignore_tags=x';
125+
$expectedString .= '/v1/translate?auth_key=123456&source_lang=de&target_lang=en&tag_handling=xml&ignore_tags=x&formality=default';
126126

127127
$authKey = '123456';
128128
$deepl = new DeepL($authKey);

0 commit comments

Comments
 (0)