[Validator] fix merge
This commit is contained in:
parent
49b74baab4
commit
dfc4a71eac
@ -70,10 +70,10 @@ class ConstraintViolationBuilderTest extends TestCase
|
|||||||
public function testCodeCanBeSet()
|
public function testCodeCanBeSet()
|
||||||
{
|
{
|
||||||
$this->builder
|
$this->builder
|
||||||
->setCode(5)
|
->setCode('5')
|
||||||
->addViolation();
|
->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()
|
public function testCauseCanBeSet()
|
||||||
|
Reference in New Issue
Block a user