PHPUnit tests are failing on a debug(), that means those debugs abort a test before it has a chance to actually report what changed, and it's default output is much better anyway.
Before:
1) Drupal\Tests\node\Functional\NodeBlockFunctionalTest::testRecentNodeBlock
<pre>Unwanted cache contexts in response: </pre>
/home/berdir/Projekte/d8/core/includes/common.inc:1214
/home/berdir/Projekte/d8/core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php:168
/home/berdir/Projekte/d8/core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php:148
(The problem is that there's a missing context, not an unwanted, but it already stops on that)
After:
1) Drupal\Tests\node\Functional\NodeBlockFunctionalTest::testRecentNodeBlock
Failed asserting that Array &0 (
0 => 'languages:language_content'
1 => 'languages:language_interface'
2 => 'theme'
3 => 'url.query_args:_wrapper_format'
4 => 'user'
) is identical to Array &0 (
0 => 'languages:language_content'
1 => 'languages:language_interface'
2 => 'route'
3 => 'theme'
4 => 'url.query_args:_wrapper_format'
5 => 'user'
).
Comments
Comment #2
berdirdeja-vu: #2978261: \Drupal\Tests\system\Functional\Cache\AssertPageCacheContextsAndTagsTrait::assertCacheContexts() is unhelpful after conversion to phpunit