Skip to content

Commit

Permalink
[Validator] fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Apr 28, 2020
1 parent b829f1a commit 1780dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Violation/ConstraintViolationBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public function testAppendMultiplePropertyPaths()
public function testCodeCanBeSet()
{
$this->builder
->setCode(5)
->setCode('5')
->addViolation();

$this->assertViolationEquals(new ConstraintViolation($this->messageTemplate, $this->messageTemplate, [], $this->root, 'data', 'foo', null, 5, new Valid()));
$this->assertViolationEquals(new ConstraintViolation($this->messageTemplate, $this->messageTemplate, [], $this->root, 'data', 'foo', null, '5', new Valid()));
}

public function testCauseCanBeSet()
Expand Down

0 comments on commit 1780dff

Please sign in to comment.