We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4596199 commit 2c67ca2Copy full SHA for 2c67ca2
Tests/Violation/ConstraintViolationBuilderTest.php
@@ -87,7 +87,7 @@ public function testCauseCanBeSet()
87
public function testTranslationDomainFalse()
88
{
89
$translator = $this->createMock(TranslatorInterface::class);
90
- $translator->expects(self::once())->method('trans');
+ $translator->expects(self::once())->method('trans')->willReturn('');
91
92
$builder = new ConstraintViolationBuilder($this->violations, new Valid(), $this->messageTemplate, [], $this->root, 'data', 'foo', $translator);
93
$builder->addViolation();
0 commit comments