Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31432, comment 11


Ignore:
Timestamp:
05/29/2019 01:42:52 AM (6 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31432, comment 11

    initial v1  
    1 Seems the "time proven" solution was to use `assertContains()` when testing HTML output.
     1Seems the "time proven" solution was to use `assertContains()` when testing HTML output, and avoid the line endings.
    22
    33Still seeing line endings errors in phpunit/tests/dependencies/scripts.php that are caused by comparing with `wp_scripts_print_translations_output` that holds some inline JS. It tests translation scripts outputted with printf() in script-loader. Seems we can test it with `assertContains()` too, perhaps only one line, not the whole script.