Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295382

Add debug() like functionality to BrowserTestBase and KernelTestBase

$
0
0

Problem/Motivation

debug() can be helpful from time to time. Sadly its throwing an error which phpunit converts to an exception, which stops the processing of anything.

Proposed resolution

Allow Symfony's VarDumper component's dump() function to be used in tests as follows:

- Unit tests: dump() already works in these
- Kernel tests: allow dump() to work in both test code and SUT code
- Functional tests: dump() already works in SUT code (output is shown in HTML output from the SUT site). Allow dump() to work in test code

Remaining tasks

Do it.

User interface changes

None.

API changes

None.

Data model changes

None.


Viewing all articles
Browse latest Browse all 295382

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>