WordPress.org

Make WordPress Core

Changeset 304 in tests


Ignore:
Timestamp:
05/20/10 20:02:59 (5 years ago)
Author:
westi
Message:

Add a test for WP#12860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_post.php

    r297 r304  
    757757        $this->assertEquals('', get_post_meta($this->post_id_2, 'unique_delete_by_key', true)); 
    758758    } 
     759     
     760    function test_funky_post_meta() { 
     761        $this->knownWPBug(12860); 
     762         
     763        $funky_meta[] = new StdClass(); 
     764        $funky_meta[] = new StdClass(); 
     765         
     766        // Add a post meta item 
     767        $this->assertTrue(add_post_meta($this->post_id, 'test_funky_post_meta', $funky_meta, true)); 
     768 
     769        //Check they exists 
     770        $this->assertEquals($funky_meta, get_post_meta($this->post_id, 'test_funky_post_meta', true)); 
     771     
     772    } 
    759773} 
    760774?> 
Note: See TracChangeset for help on using the changeset viewer.