Make WordPress Core

Changeset 894 in tests for trunk/tests/test_includes_post.php


Ignore:
Timestamp:
07/09/2012 03:32:24 PM (14 years ago)
Author:
nacin
Message:

Convert knownWPBug and knownUTBug to @ticket annotations. fixes #102.

Allows for an extra description to be included with the annotation,
which will be passed to markTestSkipped().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_includes_post.php

    r877 r894  
    382382        }
    383383
     384        /**
     385         * @ticket 5364
     386         */
    384387        function test_delete_future_post_cron() {
    385                 // http://trac.wordpress.org/ticket/5364
    386388                // "When I delete a future post using wp_delete_post($post->ID) it does not update the cron correctly."
    387 
    388                 #$this->knownWPBug(5364);
    389 
    390389                $future_date = strtotime('+1 day');
    391390
    … …  
    410409        }
    411410
    412         function test_permlink_without_title() {
     411        function test_permalink_without_title() {
    413412                // bug: permalink doesn't work if post title is empty
    414413                // wpcom #663, also http://trac.wordpress.org/ticket/5305
    … …  
    436435        }
    437436
    438         function test_attachment_url() {
    439         }
    440 
     437        /**
     438         * @ticket 21013
     439         */
    441440        function test_wp_unique_post_slug_with_non_latin_slugs() {
    442                 $this->knownWPBug(21013);
    443 
    444441                $inputs = array(
    445442                        'Αρνάκι άσπρο και παχύ της μάνας του καμάρι, και άλλα τραγούδια',
    … …  
    896893        }
    897894
     895        /**
     896         * @ticket 12860
     897         */
    898898        function test_funky_post_meta() {
    899                 $this->knownWPBug(12860);
    900 
    901899                $classy = new StdClass();
    902900                $classy->ID = 1;
    … …  
    922920 */
    923921class WPTestPostTypes extends WP_UnitTestCase {
    924         function setUp() {
    925                 parent::setUp();
    926         }
    927 
    928         function tearDown() {
    929                 parent::tearDown();
    930         }
    931 
    932922        function test_register_post_type() {
    933923                $this->assertNull( get_post_type_object( 'foo' ) );
Note: See TracChangeset for help on using the changeset viewer.