Skip to:
Content

BuddyPress.org

Ticket #6346: 6346.hex-unit-test.patch

File 6346.hex-unit-test.patch, 840 bytes (added by r-a-y, 10 years ago)
  • tests/phpunit/testcases/activity/functions.php

     
    55class BP_Tests_Activity_Functions extends BP_UnitTestCase {
    66
    77        /**
     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        /**
    823         * @ticket BP4488
    924         */
    1025        public function test_thumbnail_content_images() {