Make WordPress Core

Changeset 1102 in tests for trunk/tests/comment.php


Ignore:
Timestamp:
10/31/2012 08:32:58 PM (13 years ago)
Author:
scribu
Message:

fix test_wp_update_comment()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/comment.php

    r1056 r1102  
    77    function test_wp_update_comment() {
    88        $post = $this->factory->post->create_and_get( array( 'post_title' => 'some-post', 'post_type' => 'post' ) );
    9         $comments = $this->factory->comment->create_post_comments( $post_id, 5 );
     9        $comments = $this->factory->comment->create_post_comments( $post->ID, 5 );
    1010        $result = wp_update_comment( array( 'comment_ID' => $comments[0], 'comment_parent' => $comments[1] ) );
    1111        $this->assertEquals( 1, $result );
Note: See TracChangeset for help on using the changeset viewer.