Make WordPress Core

Changeset 31782


Ignore:
Timestamp:
03/15/2015 11:50:54 AM (9 years ago)
Author:
pento
Message:

Tests: Since [31733], we now encode emoji in posts, instead of removing them (when they're being stored in versions of MySQL that don't support utf8mb4).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post.php

    r30629 r31782  
    10561056
    10571057        $expected = array(
    1058             'post_title'   => "foobar",
    1059             'post_content' => "foobaz",
    1060             'post_excerpt' => "foobat"
     1058            'post_title'   => "foo😈bar",
     1059            'post_content' => "foo😎baz",
     1060            'post_excerpt' => "fooὡbat"
    10611061        );
    10621062
     
    10661066
    10671067        foreach( $expected as $field => $value ) {
    1068             $this->assertEquals( $post->$field, $value );
     1068            $this->assertEquals( $value, $post->$field );
    10691069        }
    10701070    }
Note: See TracChangeset for help on using the changeset viewer.