Make WordPress Core

Changeset 1032 in tests


Ignore:
Timestamp:
09/21/2012 12:22:48 AM (14 years ago)
Author:
SergeyBiryukov
Message:

WP_Query test for tags with Hebrew letter Nun. see #WP21779.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/query/results.php

    r904 r1032  
    4242                $this->factory->post->create( array( 'post_title' => 'tags-b-and-c', 'tags_input' => array( 'tag-b', 'tag-c' ), 'post_date' => '2010-09-01 00:00:00' ) );
    4343                $this->factory->post->create( array( 'post_title' => 'tags-a-and-c', 'tags_input' => array( 'tag-a', 'tag-c' ), 'post_date' => '2010-10-01 00:00:00' ) );
     44                $this->factory->post->create( array( 'post_title' => 'tag-נ', 'tags_input' => array( 'tag-נ' ), 'post_date' => '2010-11-01 00:00:00' ) );
    4445
    4546                unset( $this->q );
     
    8990        }
    9091
     92        /**
     93         * @ticket 21779
     94         */
     95        function test_query_tag_nun() {
     96                $posts = $this->q->query('tag=tag-נ');
     97
     98                // there is 1 post with Tag נ
     99                $this->assertCount( 1, $posts );
     100                $this->assertEquals( 'tag-%d7%a0', $posts[0]->post_name );
     101        }
     102
    91103        function test_query_tag_id() {
    92104                $tag = tag_exists('tag-a');
Note: See TracChangeset for help on using the changeset viewer.