Ticket #6346: 6346.hex-unit-test.patch
File 6346.hex-unit-test.patch, 840 bytes (added by , 10 years ago) |
---|
-
tests/phpunit/testcases/activity/functions.php
5 5 class BP_Tests_Activity_Functions extends BP_UnitTestCase { 6 6 7 7 /** 8 * @ticket BP6346 9 */ 10 public function test_bp_activity_add_and_hex_a_to_f_characters() { 11 $a = $this->factory->activity->create( array( 12 'type' => 'activity_update', 13 14 // you can switch out %E9 with any A-F prefixed character. 15 // http://www.ascii.cl/htmlcodes.htm 16 'content' => urldecode( 'hey hey %E9' ) 17 ) ); 18 19 $this->assertNotFalse( $a, 'bp_activity_add() failed to insert content with hex A-F characters.' ); 20 } 21 22 /** 8 23 * @ticket BP4488 9 24 */ 10 25 public function test_thumbnail_content_images() {