[wp-trac] [WordPress Trac] #57452: Incorrect inline comment in Tests_Ajax_wpAjaxReplytoComment::test_as_subscriber
WordPress Trac
noreply at wordpress.org
Thu Jan 12 13:37:05 UTC 2023
#57452: Incorrect inline comment in
Tests_Ajax_wpAjaxReplytoComment::test_as_subscriber
------------------------------+-----------------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: trivial | Keywords:
Focuses: |
------------------------------+-----------------------------
The
[https://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/ajax/wpAjaxReplytoComment.php#L101
inline comment in Tests_Ajax_wpAjaxReplytoComment::test_as_subscriber]
says:
{{{#!php
// Become an administrator.
}}}
But the code does:
{{{#!php
$this->_setRole( 'subscriber' );
}}}
The code seems to match the intention of the
`Tests_Ajax_wpAjaxReplytoComment::test_as_subscriber` test, so the inline
comment should be adjusted accordingly
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57452>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list