-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
[REF] Minor Test clean up #13269
[REF] Minor Test clean up #13269
Conversation
This got separated out over a few recent commits (the first one seems to have somewhat accidentally included the trait & then some others added using it. Am just pushing in this tidy up
(Standard links)
|
2c9572a
to
8cd1c98
Compare
8cd1c98
to
2ed07c2
Compare
* @param $where | ||
*/ | ||
public function aclWhereOnlySecond($type, &$tables, &$whereTables, &$contactID, &$where) { | ||
$where = " contact_a.id > 1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton Is this function unused? As I can't see a replacement in the trait?
* @param $where | ||
*/ | ||
public function aclWhereOnlyOne($type, &$tables, &$whereTables, &$contactID, &$where) { | ||
$where = " contact_a.id = " . $this->allowedContactId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton Is this function unused? As I can't see a replacement in the trait?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
@eileenmcnaughton So tests are passing. Assuming you meant to remove two unused functions aclWhereOnlyOne and aclWhereOnlySecond this is ok to merge - please confirm that's correct first? |
@mattwire yes, they are in the trait & the tests would have failed if there was a problem |
Overview
Minor cleanup within the test classes
Before
Less clean
After
More clean
Technical Details
Uses a trait for permissions functions, some comments cleanup, one unused function removed
Comments
Have at it jenkins - oh when you are ready of course