In #2750941: Additional BC assertions from WebTestBase to BrowserTestBase a new method buildXPathQuery() was added to the AssertLegacyTrait trait. The method is currently public, but it should be protected to be consistent with the other assertions in these traits.
This is currently causing BrowserTestBase tests to fail in contrib. See for example this test for Organic Groups, it fails with the following error now:
PHP Fatal error: Access level to Drupal\simpletest\AssertContentTrait::buildXPathQuery() must be public (as in class Drupal\Tests\BrowserTestBase) in /home/travis/build/amitaibu/og/og_ui/tests/src/Functional/BundleFormAlterTest.php on line 24
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2757139-2.patch | 699 bytes | pfrenssen |
Comments
Comment #2
pfrenssenHere is a simple one line fix that corrects the visibility, similar to how this was done before in #2744089: Fix visibility of AssertLegacyTrait::assertLink() and #2752315: Fix visibility of AssertLegacyTrait::assertNoEscaped().
Comment #3
klausiMakes sense!
Comment #6
catchCommitted/pushed to both 8.x branches, thanks! Sorry I missed that in the original issue.