Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Nov 24, 2024
1 parent cb7fae3 commit 7939d44
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/Unit/Column/Type/ColumnTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -979,10 +979,7 @@ private function createValueRowView(?DataTableView $dataTableView = null, mixed

protected function createTranslator(): MockObject&TranslatorInterface
{
$translator = $this->createMock(TranslatorInterface::class);
$translator->method('getLocale')->willReturn('en');

return $translator;
return $this->createMock(TranslatorInterface::class);
}

protected function createTranslatable(string $value, bool $expectTranslated = true): MockObject&TranslatableInterface
Expand All @@ -994,7 +991,7 @@ protected function createTranslatable(string $value, bool $expectTranslated = tr

$translatable->expects($this->once())
->method('trans')
->with($this->translator, $this->translator->getLocale())
->with($this->translator)
->willReturn($value)
;

Expand Down

0 comments on commit 7939d44

Please sign in to comment.