- Status changed to Needs review
over 1 year ago 4:49pm 8 April 2023 - 🇺🇸United States smustgrave
Rerolled #27
error: patch failed: core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php:119
error: core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php: patch does not apply - 🇮🇳India TanujJain-TJ
tested and verified patch #38 on claro and olivero themes, patch applied successfully and fixed the 'Incorrect access denied messages in branding block', attaching screenshots for reference. need RTBC+1
- Status changed to RTBC
over 1 year ago 10:44am 10 April 2023 - 🇮🇳India saket-001
patch #38 is working fine. also mentioned in #39 so moving status to RTBC.
- Status changed to Needs work
over 1 year ago 9:53pm 10 April 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
+++ b/core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php @@ -115,6 +115,17 @@ public function testSystemBrandingSettings() { + $this->assertSession()->responseNotContains('Defined on the Appearance or Theme Settings page. You do not have the appropriate permissions to change the site logo.'); + $this->assertSession()->responseNotContains('Defined on the Site Information page. You do not have the appropriate permissions to change the site logo.'); + $this->assertSession()->responseNotContains('Defined on the Site Information page. You do not have the appropriate permissions to change the site logo.');
We never emit 'You do not have the appropriate permissions' anymore, so these assertions would still pass even if the patch didn't work.
Let's change them to assert the new string isn't emitted.
Let's also add some positive asserts for the user that does have the required permissions