This is a minor side issue which arose at the tail end of #1816764: Add missing type hinting to Contextual module docblocks

Normally with these bug/issues the documentation no longer described the actual implementation.

This one is in reverse...

here is a code cut and past from https://www.drupal.org/node/1816764#comment-9703923

The functions current returns null.

+++ b/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php
@@ -134,8 +137,6 @@ function testDifferentPermissions() {
-   *
-   * @return bool
    */
   protected function assertContextualLinkPlaceHolder($id) {
@@ -146,8 +147,6 @@ protected function assertContextualLinkPlaceHolder($id) {
-   *
-   * @return bool
    */
   protected function assertNoContextualLinkPlaceHolder($id) {

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug because assertions should always return bool.
Issue priority Normal because it's not breaking anything.
Unfrozen changes Unfrozen because it only changes automated tests.
Prioritized changes None
Disruption None
CommentFileSizeAuthor
#1 2453931-1.patch1.54 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
1.54 KB

Added the returns and fixed the comments.

Also added a beta eval to the summary.

Edit: I only just noticed that you assigned this issue to yourself while making it. I'm sorry, hope you didn't start fixing this yet :/

martin107’s picture

Assigned: martin107 » Unassigned

Ah no problem, I was interrupted.

Its looks good to me. I won't RTBC my own issue... but try and trade reviews with someone in IRC tomorrow.

geertvd’s picture

Status: Needs review » Reviewed & tested by the community

Looks like the sane thing to do.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Test only change is permitted in beta. Committed 7480281 and pushed to 8.0.x. Thanks!

  • alexpott committed 7480281 on 8.0.x
    Issue #2453931 by pjonckiere: ContextualDynamicContextTest follow up
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.