Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
introwit committed Jun 29, 2020
1 parent a9c89f9 commit 58f1bc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/GoogleTranslateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function it_can_detect_the_language_of_an_array_of_strings_passed_to_it()
public function it_can_translate_the_string_passed_to_it()
{
$this->translateClient
->shouldReceive('translate')->with($this->testString, 'hi')
->shouldReceive('translate')->with($this->testString, 'hi', 'text')
->once()
->andReturn(['source' => 'en', 'text' => '']);

Expand All @@ -92,7 +92,7 @@ public function it_can_translate_the_string_passed_to_it()
public function it_can_translate_the_html_string_passed_to_it()
{
$this->translateClient
->shouldReceive('translate')->with($this->testHtmlString, 'hi')
->shouldReceive('translate')->with($this->testHtmlString, 'hi', 'html')
->once()
->andReturn(['source' => 'en', 'text' => '']);

Expand Down Expand Up @@ -166,7 +166,7 @@ public function test_the_unless_language_is_method_translates_the_language_of_gi
->andReturn(['languageCode' => 'en', 'confidence' => '']);

$this->translateClient
->shouldReceive('translate')->with($this->testString, 'hi')
->shouldReceive('translate')->with($this->testString, 'hi', 'text')
->once()
->andReturn(['source' => 'en', 'text' => '']);

Expand Down

0 comments on commit 58f1bc7

Please sign in to comment.