Skip to content

Commit

Permalink
fix: test trans_choice
Browse files Browse the repository at this point in the history
  • Loading branch information
nerg4l committed Jan 22, 2024
1 parent 8cc07ad commit 4e7258a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/LostInTranslationServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testDefaultConfig()

$this->assertArrayHasKey('detect', $config);
$this->assertEquals([
'function' => ['__', 'trans'],
'function' => ['__', 'trans', 'trans_choice'],
'method-function' => [
["app('translator')", 'get'],
],
Expand Down
3 changes: 2 additions & 1 deletion tests/NodeFinder/TranslationFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function testFunctionCall()
__('keep');
trans('keep');
trans_choice('keep', 10);
EOD;

$finder = new TranslationFinder(
Expand All @@ -47,7 +48,7 @@ public function testFunctionCall()

$nodes = $finder->find($str);

$this->assertCount(2, $nodes);
$this->assertCount(3, $nodes);
}

public function testStaticCall()
Expand Down

0 comments on commit 4e7258a

Please sign in to comment.