Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-29864: Spelling mistake in Content Type alert warnings #2498

Merged
merged 1 commit into from
Dec 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions eZ/Publish/Core/FieldType/Tests/StringLengthValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ public function providerForValidateKO()
return array(
array(
'',
'The string can not be shorter than %size% character.',
'The string can not be shorter than %size% characters.',
'The string cannot be shorter than %size% character.',
'The string cannot be shorter than %size% characters.',
array('%size%' => $this->getMinStringLength()),
),
array(
'Hi!',
'The string can not be shorter than %size% character.',
'The string can not be shorter than %size% characters.',
'The string cannot be shorter than %size% character.',
'The string cannot be shorter than %size% characters.',
array('%size%' => $this->getMinStringLength()),
),
array(
Expand All @@ -231,8 +231,8 @@ public function providerForValidateKO()
),
array(
'ABC♔',
'The string can not be shorter than %size% character.',
'The string can not be shorter than %size% characters.',
'The string cannot be shorter than %size% character.',
'The string cannot be shorter than %size% characters.',
array('%size%' => $this->getMinStringLength()),
),
);
Expand Down
12 changes: 6 additions & 6 deletions eZ/Publish/Core/FieldType/Tests/TextLineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ public function provideInvalidDataForValidate()
new TextLineValue('aaa'),
array(
new ValidationError(
'The string can not be shorter than %size% character.',
'The string can not be shorter than %size% characters.',
'The string cannot be shorter than %size% character.',
'The string cannot be shorter than %size% characters.',
array(
'%size%' => 5,
),
Expand Down Expand Up @@ -686,8 +686,8 @@ public function provideInvalidDataForValidate()
'text'
),
new ValidationError(
'The string can not be shorter than %size% character.',
'The string can not be shorter than %size% characters.',
'The string cannot be shorter than %size% character.',
'The string cannot be shorter than %size% characters.',
array(
'%size%' => 10,
),
Expand All @@ -707,8 +707,8 @@ public function provideInvalidDataForValidate()
new TextLineValue('ABC♔'),
array(
new ValidationError(
'The string can not be shorter than %size% character.',
'The string can not be shorter than %size% characters.',
'The string cannot be shorter than %size% character.',
'The string cannot be shorter than %size% characters.',
array(
'%size%' => 5,
),
Expand Down
4 changes: 2 additions & 2 deletions eZ/Publish/Core/FieldType/TextLine/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public function validate(FieldDefinition $fieldDefinition, SPIValue $fieldValue)
$constraints['minStringLength'] !== 0 &&
mb_strlen($fieldValue->text) < $constraints['minStringLength']) {
$validationErrors[] = new ValidationError(
'The string can not be shorter than %size% character.',
'The string can not be shorter than %size% characters.',
'The string cannot be shorter than %size% character.',
'The string cannot be shorter than %size% characters.',
array(
'%size%' => $constraints['minStringLength'],
),
Expand Down
4 changes: 2 additions & 2 deletions eZ/Publish/Core/FieldType/Validator/StringLengthValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ public function validate(BaseValue $value)
$this->constraints['minStringLength'] !== 0 &&
mb_strlen($value->text) < $this->constraints['minStringLength']) {
$this->errors[] = new ValidationError(
'The string can not be shorter than %size% character.',
'The string can not be shorter than %size% characters.',
'The string cannot be shorter than %size% character.',
'The string cannot be shorter than %size% characters.',
array(
'%size%' => $this->constraints['minStringLength'],
)
Expand Down