[Wp-unit-tests] [WordPress Unit Tests] #34: Fix failed tests in WPTestAttributeFiltering

WordPress Unit Tests noreply at wordpress.org
Wed Apr 11 22:58:27 UTC 2012


#34: Fix failed tests in WPTestAttributeFiltering
-----------------------+--------------------------------
 Reporter:  kurtpayne  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  major      |  Milestone:  Fix existing Tests
Component:  Escaping   |    Version:
 Keywords:  kses       |
-----------------------+--------------------------------
 Unit test `WPTestAttributeFiltering::test_the_content()` fails because the
 kses filters are removed by `TestPostFiltering::tearDown()`.  kses filters
 are initialized in the init hook (and in `WPTestAttributeFiltering::setup`
 too) and aren't reset between the tests.

 In IRC, SergeyBiryukov was looking into this too, and added:

 > Was looking into that as well. AFAIR, the test is failing due to `&amp`
 vs. `&#038`, because the former is converted into the latter by both
 `wptexturize()` and `convert_chars()`. A call to `kses_remove_filters()`
 would explain it.

-- 
Ticket URL: <https://unit-test.trac.wordpress.org/ticket/34>
WordPress Unit Tests <https://unit-test.trac.wordpress.org>
My example project


More information about the wp-unit-tests mailing list