[wp-trac] [WordPress Trac] #51881: Incorrect function called in test (was: removed duplicate test)

WordPress Trac noreply at wordpress.org
Thu Nov 26 23:27:06 UTC 2020


#51881: Incorrect function called in test
------------------------------+-----------------------------
 Reporter:  pbearne           |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  reviewing
 Priority:  normal            |   Milestone:  5.7
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------------
Description changed by pbearne:

Old description:

> I found a duplicate test while adding covers SanitizeTitle.php has the
> same test (test_strips_html) so removed from SanitizeTitleWithDashes.php
>
> Will keep it removed from covers patch

New description:

 the test_strips_html in SanitizeTitleWithDashes.php was calling
 sanitize_title not sanitize_title_with_dashes

 so I swapped to the correct function

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51881#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list