mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 09:05:52 +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());
|
new UniqueObjectCollection());
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->buildViolation('This collection should contain only unique elements.')
|
->buildViolation('This value is already used.')
|
||||||
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
||||||
->setParameter('{{ object }}', 'objectString')
|
->setParameter('{{ object }}', 'objectString')
|
||||||
->atPath('property.path[1].a')
|
->atPath('property.path[1].a')
|
||||||
|
@ -100,7 +100,7 @@ class UniqueObjectCollectionValidatorTest extends ConstraintValidatorTestCase
|
||||||
new UniqueObjectCollection(fields: ['b']));
|
new UniqueObjectCollection(fields: ['b']));
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->buildViolation('This collection should contain only unique elements.')
|
->buildViolation('This value is already used.')
|
||||||
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
||||||
->setParameter('{{ object }}', 'objectString')
|
->setParameter('{{ object }}', 'objectString')
|
||||||
->atPath('property.path[1].b')
|
->atPath('property.path[1].b')
|
||||||
|
@ -116,7 +116,7 @@ class UniqueObjectCollectionValidatorTest extends ConstraintValidatorTestCase
|
||||||
new UniqueObjectCollection(fields: ['b', 'a']));
|
new UniqueObjectCollection(fields: ['b', 'a']));
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->buildViolation('This collection should contain only unique elements.')
|
->buildViolation('This value is already used.')
|
||||||
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
||||||
->setParameter('{{ object }}', 'objectString')
|
->setParameter('{{ object }}', 'objectString')
|
||||||
->atPath('property.path[1].b')
|
->atPath('property.path[1].b')
|
||||||
|
@ -145,7 +145,7 @@ class UniqueObjectCollectionValidatorTest extends ConstraintValidatorTestCase
|
||||||
new UniqueObjectCollection(fields: ['b'], allowNull: false));
|
new UniqueObjectCollection(fields: ['b'], allowNull: false));
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->buildViolation('This collection should contain only unique elements.')
|
->buildViolation('This value is already used.')
|
||||||
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
->setCode(UniqueObjectCollection::IS_NOT_UNIQUE)
|
||||||
->setParameter('{{ object }}', 'objectString')
|
->setParameter('{{ object }}', 'objectString')
|
||||||
->atPath('property.path[2].b')
|
->atPath('property.path[2].b')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue