UserBlocksTest::testUserLoginBlock calls SafeMarkup::set() which is meant to be for internal use only. It only needs to call it so that a proper assertion can be run on HTML that has been parsed by
Because there are no variables used in this markup string, there is no need to use a formatter of any kind. The only need is to mark the string as safe.
The most expedient way to do this is to use
Evaluate whether the string can be refactored to one of the formats outlined in this change record: https://www.drupal.org/node/2311123None of those are needed, since formatting isn't required. Identify whether there is existing automated test coverage for the sanitization of the string. If there is, list the test in the issue summary. If there isn't, add an automated test for it.This is a test, so not needed. If the string cannot be refactored, the SafeMarkup::set() usage needs to be thoroughly audited and documented.Refactor can be successful
Manual testing steps
No manual testing is needed since this is in a test.
User interface changes
PASSED: [[SimpleTest]]: [PHP 5.5 MySQL] 103,185 pass(es). View
PASSED: [[SimpleTest]]: [PHP 5.5 MySQL] 102,571 pass(es). View