mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed tests
This commit is contained in:
parent
b70d74ae4b
commit
75df0198fc
1 changed files with 4 additions and 4 deletions
|
@ -84,7 +84,7 @@ class UniqueObjectCollectionValidatorTest extends ConstraintValidatorTestCase
|
|||
new UniqueObjectCollection());
|
||||
|
||||
$this
|
||||
->buildViolation('This collection should contain only unique elements.')
|
||||
->buildViolation('This value is already used.')
|
||||
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
||||
->setParameter('{{ object }}', 'objectString')
|
||||
->atPath('property.path[1].a')
|
||||
|
@ -100,7 +100,7 @@ class UniqueObjectCollectionValidatorTest extends ConstraintValidatorTestCase
|
|||
new UniqueObjectCollection(fields: ['b']));
|
||||
|
||||
$this
|
||||
->buildViolation('This collection should contain only unique elements.')
|
||||
->buildViolation('This value is already used.')
|
||||
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
||||
->setParameter('{{ object }}', 'objectString')
|
||||
->atPath('property.path[1].b')
|
||||
|
@ -116,7 +116,7 @@ class UniqueObjectCollectionValidatorTest extends ConstraintValidatorTestCase
|
|||
new UniqueObjectCollection(fields: ['b', 'a']));
|
||||
|
||||
$this
|
||||
->buildViolation('This collection should contain only unique elements.')
|
||||
->buildViolation('This value is already used.')
|
||||
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
||||
->setParameter('{{ object }}', 'objectString')
|
||||
->atPath('property.path[1].b')
|
||||
|
@ -145,7 +145,7 @@ class UniqueObjectCollectionValidatorTest extends ConstraintValidatorTestCase
|
|||
new UniqueObjectCollection(fields: ['b'], allowNull: false));
|
||||
|
||||
$this
|
||||
->buildViolation('This collection should contain only unique elements.')
|
||||
->buildViolation('This value is already used.')
|
||||
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
||||
->setParameter('{{ object }}', 'objectString')
|
||||
->atPath('property.path[2].b')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue