- Issue created by @Amer cloudy
- ๐ฉ๐ชGermany tobiasb Berlin
@amer cloudy
You need to keep the headline and custom text below the headline.
- First commit to issue fork.
- Merge request !9742Issue #3463908 by catch, quietone: Split OptionsFieldUiTest into two โ (Open) created by arunkumark
- ๐ฎ๐ณIndia arunkumark Coimbatore
As per comment #29 created MR and done the Unit testing on
ProtectedUserFieldConstraintValidatorTest.php
On the file, ProtectedUserFieldConstraintValidatorTest.php will have logic for passing messages and without messages for the Violation. So any additional test case hope not required.
if ($name) { $context->expects($this->once()) ->method('addViolation') ->with($constraint->message, ['%name' => $name]); } else { $context->expects($this->never()) ->method('addViolation'); }
- ๐ฎ๐ณIndia mdsohaib4242
This patch will allow null values for $message and replace them with a default message ('An error occurred.') if null is encountered, ensuring the method behaves as expected.
- ๐ฎ๐ณIndia arunkumark Coimbatore
arunkumark โ changed the visibility of the branch 3477609-drupalcorevalidationexecutioncontextaddviolation-argument-1 to hidden.
- Merge request !9749Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior โ (Open) created by arunkumark
- ๐ฎ๐ณIndia arunkumark Coimbatore
arunkumark โ changed the visibility of the branch 3477609-custom-validation-no-message to hidden.
- Merge request !9752Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior โ (Closed) created by arunkumark
- Merge request !9753Resolve #3477609 "Custom validation no message d11" โ (Open) created by arunkumark
- ๐ฎ๐ณIndia arunkumark Coimbatore
arunkumark โ changed the visibility of the branch 3477609-custom-validation-no-message-fix to hidden.
- ๐ฌ๐งUnited Kingdom oily Greater London
I have updated the issue summary. There is now a merge request in place. There is a fix and test coverage in place so I am changing the status to 'Needs review'.
- ๐บ๐ธUnited States smustgrave
Issue summary should follow standard template. Example the section for proposed solution is missing.
The MR doesnโt have a test coverage and thereโs also 2 open. One should be hidden or highlighted in the proposed solution section which MR is to be reviewed
- ๐ฌ๐งUnited Kingdom oily Greater London
@smustgrave Thank you. I think you can hide branches. I think I have hidden the 'old' branches now. I cannot see a way to hide MR's so there are > 1 showing.
- ๐ฌ๐งUnited Kingdom oily Greater London
For test coverage, I guess the following would work.
- Create a new test module or use an existing one
- Inside it, create a custom validator containing without a message parameter
- Create a unit test to mock the custom validator class
- Test that a generic message is returned by the class
- Test that no exception is thrown