Changeset 32391 for branches/3.7/tests/phpunit/tests/comment.php
- Timestamp:
- 05/06/2015 07:16:41 PM (11 years ago)
- File:
-
- 1 edited
-
branches/3.7/tests/phpunit/tests/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/tests/phpunit/tests/comment.php
r32318 r32391 24 24 } 25 25 26 $post_id = $this->factory->post->create(); 26 $u = $this->factory->user->create(); 27 $post_id = $this->factory->post->create( array( 'post_author' => $u ) ); 27 28 28 29 $data = array( … … 37 38 ); 38 39 40 add_filter( 'pre_option_moderation_notify', '__return_zero' ); 39 41 $id = wp_new_comment( $data ); 42 remove_filter( 'pre_option_moderation_notify', '__return_zero' ); 40 43 41 $this->assert False( $id );44 $this->assertEmpty( $id ); 42 45 43 46 // Cleanup.
Note: See TracChangeset
for help on using the changeset viewer.