Changeset 34250 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 09/16/2015 09:59:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r34172 r34250 260 260 $this->assertTrue( wp_notify_moderator( $c ) ); 261 261 } 262 263 /** 264 * @ticket 33587 265 */ 266 public function test_wp_new_comment_notify_postauthor_should_not_send_email_when_comment_has_been_marked_as_spam() { 267 $p = $this->factory->post->create(); 268 $c = $this->factory->comment->create( array( 269 'comment_post_ID' => $p, 270 'comment_approved' => 'spam', 271 ) ); 272 273 $sent = wp_new_comment_notify_postauthor( $c ); 274 $this->assertFalse( $sent ); 275 } 262 276 }
Note: See TracChangeset
for help on using the changeset viewer.