Problem/Motivation
Previously we fixed 3298558 issue.
I've tried to run tests but unfortunately I spent lot of time without success.
I think my the previous patch is broke a kernel test.
tests/src/Kernel/GroupMembershipRequestTest::testRequestWithMemberAsUser
$this->assertTrue(in_array('User "%name" is already a member of group', $messages), 'The validation of group membership request is found.');
We should change %name to account->getDisplayName()
Please run your tests if possible, fix and commit patch for it.
Thank you!
Comments
Comment #2
kecsotComment #5
lobsterr commentedUnfortunately, I couldn't reproduce your error in the test. Probably, it is related to some local configuration, but some tests were broken and I fixed them and more tests to cover recent changes.
Comment #6
kecsotThank you for those fixes.
Sorry. I made mistake.
Test
willmay fail on developer branch or if you apply 3298558 Issue’s patch to 1.0.4 version.Comment #7
lobsterr commented@kecsot, when we create a new fork it is always created against dev branch. This is curent case. As you see the patch is already applied in dev branch
https://git.drupalcode.org/project/grequest/-/blob/1.0.x/src/Plugin/Vali...
and it also in fork with tests
https://git.drupalcode.org/issue/grequest-3298919/-/blob/3298919-missing...
Have you tried to run the tests from MR ?
BTW - I run the test always in clean Drupal
Comment #8
kecsotAs I said I can't run tests. I just created this issue to check it if you can.
Got it! I understand this test is green.
Test use
$violation->getMessage()->getUntranslatedString()function which returns"User "%name" is already a member of group".
I just suggest to extend the test to cover 3298558 issue, if possible in Kernel test.
I'm done with this issue. Thanks and sorry for waste time!
Comment #10
lobsterr commentedno problem at all, I have update the tests thanks to you. Thank for helping me to make this module better