There's no more String class in core after #2458387: Remove Utility\String class
And tests are outdated

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, string-safemarkup.patch, failed testing.

andypost’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
6.32 KB
7.09 KB

Tests should be cleaned-up too

fgm’s picture

This looks good, but I noticed duplicated code (which already existed, actually). This line is present in all tests, and it would be nicer if it were refactored to just a single occurrence, say in a XmlRpcTestBase

    $url = \Drupal::url('xmlrpc.php', [], ['absolute' => TRUE]);
fgm’s picture

Status: Needs review » Needs work
andypost’s picture

Status: Needs work » Needs review
FileSize
9.54 KB
12.35 KB

So looking at basic_auth core module tests, better to use trait

  • fgm committed 74c13c4 on 8.x-1.x authored by andypost
    Issue #2486179 by andypost: convert String to SafeMarkup.
    
fgm’s picture

Status: Needs review » Fixed

Committed to 8.x-1.x, thank you.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.