Skip to content

Commit 510f362

Browse files
Tests: Remove redundant @covers tags in wp_mail() tests.
`@covers` has already been added at the class level, so there is no need to add it to individual unit tests. Follow-up to [54702], [60698]. Props mukesh27. See #28059. git-svn-id: https://develop.svn.wordpress.org/trunk@60699 602fd350-edb4-49c9-b593-d223f7449a82
1 parent accf941 commit 510f362

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/phpunit/tests/pluggable/wpMail.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,9 @@ public function test_wp_mail_resets_properties() {
556556
}
557557

558558
/**
559-
* Test that wp_mail() can send embedded images.
559+
* Tests that wp_mail() can send embedded images.
560560
*
561561
* @ticket 28059
562-
* @covers ::wp_mail
563562
*/
564563
public function test_wp_mail_can_send_embedded_images() {
565564
$embeds = array(
@@ -593,11 +592,11 @@ public function test_wp_mail_can_send_embedded_images() {
593592
$this->assertStringContainsString( 'cid:' . $key, $mailer->get_sent()->body, 'The cid ' . $key . ' is not referenced in the mail body.' );
594593
}
595594
}
595+
596596
/**
597-
* Test that wp_mail() can send embedded images as a multiple line string.
597+
* Tests that wp_mail() can send embedded images as a multiple line string.
598598
*
599599
* @ticket 28059
600-
* @covers ::wp_mail
601600
*/
602601
public function test_wp_mail_string_embeds() {
603602
$embeds = DIR_TESTDATA . '/images/canola.jpg' . "\n";

0 commit comments

Comments
 (0)