#2277547: User::getRoles test coverage & regression fix added a todo about moving the role constants from bootstrap.inc to a class. The idea is sound but I don't really see any discussion on it and there are two issues with putting this on the test.
1) a @todo on a test is not likely to be seen or acted on unless someone triggers the second problem
2) phpunit flags the test as Risky when you run in strict mode. It assumes something isn't complete about the test because you annotated it @todo.
The test is complete, just the constant might not be in the right place so the attached patch moves the @todo to the constant declaration where it will be seen. I don't know if this should be deprecated or removed entirely or what but this opens the discussion.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2432975-2.patch | 1.2 KB | neclimdul |
#2 | 2432975-2-interdiff.txt | 711 bytes | neclimdul |
Comments
Comment #1
dawehnerWhat about adding an actual issue for these TODOs already?
Comment #2
neclimdul#2433281: Move Role Constants on to a Class/Interface
Unsure about its ability to go into 8.0.x so leaving this open and updating the patch to link to it.
Comment #3
jhodgdonThe formatting here is not OK:
Needs a blank line before the @todo.
Comment #4
Berdir#2433281: Move Role Constants on to a Class/Interface is actually RTBC, although I'm not sure if it will actually be committed like that, but we can probably close it as a duplicate?
Comment #5
neclimdul*handwavy* I mostly opened this because it seemed quick and easy and I honestly didn't expect the other one to come to a consensus so quick. That said it is RTBC so I'll close this and if it gets tied up in weirdness which I don't expect that this point I'll reopen this for a quick doc fix.