Closed (fixed)
Project:
Modal
Version:
4.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Aug 2022 at 15:42 UTC
Updated:
20 Sep 2022 at 18:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gquisini commentedComment #3
gquisini commentedComment #4
lucasscHi!
Submitting new patch with mocks and a ModalPageHelperService object.
Edit: sorry but I submitted an outdated patch. @gquisini already got it right, we'll send a new patch soon.
Comment #5
lucasscAdded tests for:
Comment #6
lucasscOnce more I submitted the wrong path (not my day e.e). Please, ignore files in #5.
Submitting the correct patch and interdiff.
Comment #7
gquisini commentedIn this patch, we created some tests to:
- verifyIfUserHasAccessOnModal()
- verifyIfModalIsAvailableForEveryone()
- getModalOptions()
Comment #8
gquisini commentedChanging status to "needs review" because we're starting to feel stuck.
This is our first unit test, so we may have made some mistakes. Feel free to suggest modifications and improvements, we'll be willing to fix them out.
Kindly review.
Comment #9
paulocsAs the
$this->setUp();method is called, can we move the tests bellow to a new test function?Comment #10
lucasscGood idea, @paulocs!
Comment #11
sophiavs commentedI'll do the review
Comment #12
sophiavs commentedI reviewed the concepts of UnitTests and everything seems to be right.
I found one coding standards error on a "true" value that should be "TRUE",
Comment #13
sophiavs commentedSorry i uploaded the interdiff as a .patch instead of .txt
Comment #14
paulocsPatch Failed to Apply. Moving to NW.
Comment #15
sophiavs commentedI saw now that the patch was blank
Comment #16
lucasscComment #17
lucasbaralmI will review this.
Comment #18
lucasbaralmAs @sophiavs said, all tests are right, covering all the methods of the ModalPageHelperService class that need to be tested. With the patch from #15 that are no standard issues remaining and as all unit tests work i'm moving to RTBC.
Comment #19
paulocsComment #21
paulocsThanks!