Closed (duplicate)
Project:
Drupal core
Version:
9.2.x-dev
Component:
phpunit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 May 2017 at 21:42 UTC
Updated:
9 Feb 2021 at 17:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
damienmckennaComment #3
damienmckennaEven if the if() statement is commented out, nothing happens with the output.
Comment #4
damienmckennaFor consideration - replace the logic in verbose() entirely with just a call to htmlOutput().
Comment #5
damienmckennaThis won't work in all cases as htmlOutput is in Drupal\Tests\BrowserTestBase, so the class hierarchy is off.
Comment #6
damienmckennaOk, lets just override verbose() in BrowserTestBase() so that it uses htmlOutput().
Comment #8
alexpottI think we should remove \Drupal\KernelTests\AssertLegacyTrait::verbose() then. Or maybe something like the attached patch.
This means verbose will throw an unsupported message in KernelTestBase - which is fine because it is not going to work so atleast it is honest. And eventually we will remove ->verbose() . There is a reason PHPUnit doesn't support this.
Comment #10
damienmckennaSo it seems the old verbose() message was being used by a good many methods throughout the codebase, even though since 8.3.x it wasn't having any effect. That's going to take a bit of time to work through.
Comment #14
damienmckennaReroll of #6.
Comment #15
damienmckennaAt the very least we need a replacement for the API and a change record.
Comment #19
quietone commentedTriaging issues in simpletest.module as part of the Bug Smash Initiative to determine if they should be in the Simpletest Project or core.
This looks like it a Phpunit issue, changing component.
Comment #21
mondrakeActually this doesn't do anything at all atm. With #2795567: Use Symfony's VarDumper for easier test debugging with dump() done, we may just deprecate it and remove its usages. For the purpose of debugging, at that point
dump()will cover most of the needs, I guess.Comment #22
alexpottThis has been resolved by #2795567: Use Symfony's VarDumper for easier test debugging with dump() and #3193163: Deprecate AssertLegacyTrait::verbose and remove its usage
Comment #23
damienmckennaThat works, thank you!