Skip to content

Commit c2fecf7

Browse files
Fix fragile translation test.
The test required an exact string match. So as the translation API improved, the test broke. Make the test less fragile by just confirming the Russian word for "world" appears in the output.
1 parent 52164c7 commit c2fecf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translate/test/quickstartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function testQuickstart()
4343
$this->assertArrayHasKey('text', $translation);
4444
$this->assertEquals('en', $translation['source']);
4545
$this->assertEquals('Hello, world!', $translation['input']);
46-
$this->assertEquals('Привет мир!', $translation['text']);
46+
$this->assertContains('мир', $translation['text']);
4747
}
4848
}

0 commit comments

Comments
 (0)