- Issue created by @Anybody
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MariaDB 10.3.22last update
over 1 year ago Not currently mergeable. - @anybody opened merge request.
- 🇩🇪Germany Anybody Porta Westfalica
Queueing a test to show the issue without changing anything!
- last update
over 1 year ago 10 pass, 1 fail - last update
over 1 year ago PHPLint Failed - last update
over 1 year ago 10 pass, 1 fail - 🇩🇪Germany Anybody Porta Westfalica
Okay let's hope linebreaks or hidden characters are the reason... the last tests at least shows some differences to start with:
--- Expected +++ Actual @@ @@ -' - Public node - - ' +' + + + + +Public node + + + + + + + + + + + +'
- last update
over 1 year ago 10 pass, 1 fail - last update
over 1 year ago 10 pass, 1 fail - last update
over 1 year ago 11 pass - last update
over 1 year ago run-tests.sh fatal error - last update
over 1 year ago 10 pass, 1 fail - last update
over 1 year ago 10 pass, 1 fail - last update
over 1 year ago 11 pass - last update
over 1 year ago 11 pass - last update
over 1 year ago 11 pass - Status changed to Needs work
over 1 year ago 5:08pm 10 May 2023 - 🇩🇪Germany Anybody Porta Westfalica
Interesting, looks like this test fails since 10.1.x
Might this be related to 📌 Strip HTML tags when using assertEquals() to compare markup Fixed perhaps?Still couldn't find a difference between:
-'Public node' +'Public node'
and guess it must be something like a hidden character, escaping or something like that... -.-
- 🇩🇪Germany Anybody Porta Westfalica
Okay I was now able to reproduce this locally, after upgrading to 10.1.x-dev!
Here are the correct details, invisible online:
1) Drupal\Tests\twig_tweak\Kernel\EntityViewBuilderTest::testEntityViewBuilder Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'<article role="article"><h2><a href="/node/1" rel="bookmark"><span>Public node</span></a></h2><div></div></article>' +'<article><h2><a href="/node/1" rel="bookmark"><span>Public node</span></a></h2><div></div></article>' /var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122 /var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php:79 /var/www/html/web/modules/contrib/twig_tweak/tests/src/Kernel/EntityViewBuilderTest.php:95 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
- Status changed to Active
over 1 year ago 7:11pm 10 May 2023 - 🇩🇪Germany Anybody Porta Westfalica
I tried switching to
self::assertXmlStringEqualsXmlString()
so it doesn't need all the ugly markup cleanups anymore, but sadly there seems to be a bug in PHPUnit 9,x (9.5 required by Drupal 10.1.x) so it's not usable (yet):Fatal error: Uncaught Exception: Serialization of 'DOMDocument' is not allowed in Standard input code:84
Similar here:
https://github.com/RSS-Bridge/rss-bridge/issues/2704I couldn't find a way around it, so I'll proceed with the (ugly) cleanups for now. But as soon as possible, that should better be switched, I guess.
- Status changed to Needs review
over 1 year ago 7:15pm 10 May 2023 - 🇩🇪Germany Anybody Porta Westfalica
This was the simple reason: 📌 Remove redundant role="article" from html tags Fixed
- last update
over 1 year ago 11 pass - 🇩🇪Germany Anybody Porta Westfalica
@Chi: Would be super cool if you could merge this, as the failing tests currently polute the other issues test results.
See #10 for the root cause (core template change).Only for that reason I'm setting the priority to major.
- Status changed to Closed: outdated
over 1 year ago 4:57am 27 May 2023 - 🇷🇺Russia Chi
Sorry totally missed this issue.
Moving credits to 💬 Cheat sheet: format_size fliter needs explanation Fixed .