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
Replace usage of withConsecutive in phpunit tests #8833
Comments
I would like to work on this one. Can I? |
Hi @neeraj-2, due to how our GitHub organization is set up we cannot assign external users to an issue. However, if no one else is assigned/working on the issue, feel free to just post that you're working on it, and then open a pull request! Once you make a pull request, we'll be happy to go through the review process and try to get it merged. We recommend reading the suggestions for new developers here as well as our How to Contribute guide to help you get started, and if you get stuck on something, feel free to ask on the general chat on Slack. |
hi @MasterOdin I have made changes locally. How can i run test cases to make sure that the new phpunit code runs perfectly. I have made changes in the the files
I've made a draft PR, if someone can have a look and let me know how, that'd be great. Cheers |
To run things locally, you can use Otherwise, when you make a PR against Submitty, it'll run our test suite against it. |
Hey @MasterOdin when i run |
Hello folks, hope you are all doing well. May you help on what I am supposed to use in version 10 to replace the withConsecutive method? Thx in advance. |
I would like to work on this issue if possible please assign me |
### Please check if the PR fulfills these requirements: * [x] Tests for the changes have been added/updated (if possible) * [ ] Documentation has been updated/added if relevant ### What is the current behavior? <!-- List issue if it fixes/closes/implements one using the "Fixes #<number>" or "Closes #<number>" syntax --> Replaced withConsecutive() with switch statements Closes #8833 ### What is the new behavior? ### Other information? <!-- Is this a breaking change? --> I don't think its a breaking change. <!-- How did you test --> Tested it with phpunit using `php vendor/bin/phpunit tests/app/controllers/course/CourseMaterialsControllerTester.php` and `php vendor/bin/phpunit tests/app/controllers/admin/ConfigurationControllerTester.php`. I have made changes according to [this ](wikimedia/mediawiki-libs-Equivset@50a1d95) --------- Co-authored-by: Cameron Peterson <46759635+IDzyre@users.noreply.github.com>
In the 9.6.0 release of phpunit, it had:
Where this function will be removed in phpunit 10. We use this in a number of places in Submitty, so we'll want to replace it in whatever is the recommended way for phpunit 9.6+.
The text was updated successfully, but these errors were encountered: