Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#4 | 2751711.patch | 670 bytes | RoySegall |
Comments
Comment #2
RoySegall CreditAttribution: RoySegall at Gizra commentedComment #3
RoySegall CreditAttribution: RoySegall at Gizra commentedComment #4
RoySegall CreditAttribution: RoySegall at Gizra commentedComment #5
dawehnerWell, the other patch moves from public to protected, this from protected to public. There is some symmetry which is broken.
Comment #6
pfrenssenI 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.
Comment #7
dawehner