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

Remove uses of FormattableMarkup in kernel test assertions

$
0
0

Problem/Motivation

There is no need to use FormattableMarkup to produce message strings in PHPUnit assertions; it is cleaner and easier in almost all cases to use simple string interpolation instead.

Steps to reproduce

Proposed resolution

Replace all uses of FormattableMarkup in kernel test assertions with either plain string interpolation, or remove the assertion message entirely when the assertion is obvious and the message does not add any context.

Remaining tasks

grep FormattableMarkup -r -l | grep Kernel

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293174

Trending Articles



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