Skip to content

Commit 64d50f2

Browse files
committed
Remove wrapping on data provider and rename to functional semantics.
1 parent 9b38984 commit 64d50f2

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

tests/phpunit/tests/pluggable/wpMail.php

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -598,26 +598,20 @@ public function test_wp_mail_can_send_embedded_images( $embeds ) {
598598
*/
599599
public static function data_wp_mail_can_send_embedded_images() {
600600
return array(
601-
'Mixed Array Embeds' => array(
602-
'embeds' => array(
603-
'canola' => DIR_TESTDATA . '/images/canola.jpg',
604-
DIR_TESTDATA . '/images/test-image-2.gif',
605-
DIR_TESTDATA . '/images/avif-lossy.avif',
606-
),
601+
'Named embed + unnamed embeds' => array(
602+
'canola' => DIR_TESTDATA . '/images/canola.jpg',
603+
DIR_TESTDATA . '/images/test-image-2.gif',
604+
DIR_TESTDATA . '/images/avif-lossy.avif',
607605
),
608-
'Associative Array Embeds' => array(
609-
'embeds' => array(
610-
'canola' => DIR_TESTDATA . '/images/canola.jpg',
611-
'test-image-2' => DIR_TESTDATA . '/images/test-image-2.gif',
612-
'avif-lossy' => DIR_TESTDATA . '/images/avif-lossy.avif',
613-
),
606+
'All named embeds' => array(
607+
'canola' => DIR_TESTDATA . '/images/canola.jpg',
608+
'test-image-2' => DIR_TESTDATA . '/images/test-image-2.gif',
609+
'avif-lossy' => DIR_TESTDATA . '/images/avif-lossy.avif',
614610
),
615-
'Indexed Array Embeds' => array(
616-
'embeds' => array(
617-
DIR_TESTDATA . '/images/canola.jpg',
618-
DIR_TESTDATA . '/images/test-image-2.gif',
619-
DIR_TESTDATA . '/images/avif-lossy.avif',
620-
),
611+
'All unnamed embeds' => array(
612+
DIR_TESTDATA . '/images/canola.jpg',
613+
DIR_TESTDATA . '/images/test-image-2.gif',
614+
DIR_TESTDATA . '/images/avif-lossy.avif',
621615
),
622616
);
623617
}

0 commit comments

Comments
 (0)