Similar to #2744089: Fix visibility of AssertLegacyTrait::assertLink() we need to fix the visibility of the mentioned method.

I'll attach a small patch for it. OG is failing on travis CI with the message

PHP Fatal error: Access level to Drupal\simpletest\AssertContentTrait::assertNoEscaped() must be public (as in class Drupal\Tests\BrowserTestBase) in /home/travis/build/amitaibu/og/og_ui/tests/src/Functional/BundleFormAlterTest.php on line 167

CommentFileSizeAuthor
#4 2751711.patch670 bytesRoySegall
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RoySegall created an issue. See original summary.

RoySegall’s picture

Issue summary: View changes
RoySegall’s picture

Issue summary: View changes
RoySegall’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
670 bytes
dawehner’s picture

Well, the other patch moves from public to protected, this from protected to public. There is some symmetry which is broken.

pfrenssen’s picture

I had encountered the same failure in OG today. I didn't realize this was already reported, I created a duplicate issue (with exactly the same title as this one, funnily enough :) - #2752315: Fix visibility of AssertLegacyTrait::assertNoEscaped().

In my patch the visibility is inverted to this patch: it changes from public to protected to be consistent with the other assertions. So I guess I'll leave mine up even though it is newer.

dawehner’s picture

Status: Needs review » Closed (duplicate)