Changeset 35242 for trunk/tests/phpunit/tests/comment/slashes.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/slashes.php
r35225 r35242 10 10 parent::setUp(); 11 11 // we need an admin user to bypass comment flood protection 12 $this->author_id = self:: $factory->user->create( array( 'role' => 'administrator' ) );12 $this->author_id = self::factory()->user->create( array( 'role' => 'administrator' ) ); 13 13 $this->old_current_user = get_current_user_id(); 14 14 wp_set_current_user( $this->author_id ); … … 35 35 */ 36 36 function test_wp_new_comment() { 37 $post_id = self:: $factory->post->create();37 $post_id = self::factory()->post->create(); 38 38 39 39 // not testing comment_author_email or comment_author_url … … 75 75 */ 76 76 function test_edit_comment() { 77 $post_id = self:: $factory->post->create();78 $comment_id = self:: $factory->comment->create(array(77 $post_id = self::factory()->post->create(); 78 $comment_id = self::factory()->comment->create(array( 79 79 'comment_post_ID' => $post_id 80 80 )); … … 118 118 */ 119 119 function test_wp_insert_comment() { 120 $post_id = self:: $factory->post->create();120 $post_id = self::factory()->post->create(); 121 121 122 122 $comment_id = wp_insert_comment(array( … … 146 146 */ 147 147 function test_wp_update_comment() { 148 $post_id = self:: $factory->post->create();149 $comment_id = self:: $factory->comment->create(array(148 $post_id = self::factory()->post->create(); 149 $comment_id = self::factory()->comment->create(array( 150 150 'comment_post_ID' => $post_id 151 151 ));
Note: See TracChangeset
for help on using the changeset viewer.