Closed jacquesbh closed 3 years ago
The tests are failing because of the test suite, not because of the code changes 👋 .
@jacquesbh thank you for contribution. I just fixed the CI, could you do a rebase so I can merge your code, please
@jacquesbh could you rebase and fix the latest PHPunit tests, please
I would love to fix the test, but I can't right now, too busy :(.
I hope I'll have time later in the following weeks.
Can I do it for you?
Of course! I don't mind :).
Hello !
Could you allow edits from maintainers on your pull request please ? Here is some documentation
If you prefer, here is a patch fixing tests :
--- a/src/Validator/Constraints/SlotAvailableValidator.php
+++ b/src/Validator/Constraints/SlotAvailableValidator.php
@@ -51,7 +51,7 @@ final class SlotAvailableValidator extends ConstraintValidator
throw new UnexpectedValueException($value, ClickNCollectShipmentInterface::class);
}
- if (!$value->getMethod()->isClickNCollect()) {
+ if ((null === $method = $value->getMethod()) || !$method->isClickNCollect()) {
return;
}
Thanks !
Hi ! Could you rebase your PR so we can merge and tag a new version please ? Thanks !
The validation is always happening, even if the shipping method is not Click and Collect.
Fixing this behavior.