Changeset 40981 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 07/01/2017 01:35:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r38834 r40981 54 54 55 55 /** 56 * @ticket 36784 57 */ 58 function test_wp_update_comment_updates_comment_meta() { 59 $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) ); 60 wp_update_comment( array( 61 'comment_ID' => $comment_id, 62 'comment_meta' => array( 63 'food' => 'taco', 64 'sauce' => 'fire', 65 ), 66 ) ); 67 $this->assertEquals( 'fire', get_comment_meta( $comment_id, 'sauce', true ) ); 68 } 69 70 /** 56 71 * @ticket 30307 57 72 */
Note: See TracChangeset
for help on using the changeset viewer.