Closed (fixed)
Project:
Commerce Coupon (D7)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Nov 2015 at 08:59 UTC
Updated:
30 Dec 2015 at 22:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
eric115 commentedPatch attached.
Comment #3
eric115 commentedComment #4
mglamanEric115, great catch. Would you mind writing a test? Post the test that fails, then combine the two to show it passes? If not I can whip up a test. Let me know.
Comment #5
eric115 commented@mglaman, I am happy to write some tests for it. I will upload a new patch with some tests when they are done :)
Comment #6
eric115 commentedHere is an updated patch and an example patch that fails.
Comment #7
eric115 commentedComment #10
eric115 commentedWhoops, bad patch files.
Comment #12
mglamanI like the idea of moving to PSR-4 for tests, but it's making it hard to review. I don't see anywhere in the test a check for "admin/commerce/coupons/types" menu paths to verify permission is goofed.
Comment #13
mglamanI like the idea of moving to PSR-4 for tests, but it's making it hard to review. I don't see anywhere in the test a check for "admin/commerce/coupons/types" menu paths to verify permission is goofed.
Here is a test to test the bad permissions.
Comment #14
mglamanHere is patch from #13 with fix in #2. #13 should fail, this should pass.
Comment #16
mglamanThanks!, committed.