Skip to content

Commit 5e498d1

Browse files
committed
Fix covers tags and a couple typos
1 parent 916dd25 commit 5e498d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/modules/images/dominant-color-images/dominant-color-test.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public function test_dominant_color_get_dominant_color( $image_path, $expected_c
4848
*
4949
* @dataProvider provider_get_dominant_color
5050
*
51-
* @covers ::has_transparency_metadata
51+
* @covers ::dominant_color_metadata
5252
*/
5353
public function test_has_transparency_metadata( $image_path, $expected_color, $expected_transparency ) {
54-
// Non existing attachment.
54+
// Non-existing attachment.
5555
$transparency_metadata = dominant_color_metadata( array(), 1 );
5656
$this->assertEmpty( $transparency_metadata );
5757

@@ -209,7 +209,7 @@ public function data_provider_dominant_color_check_inline_style() {
209209
*/
210210
public function test_dominant_color_update_attachment_image_attributes( $style_attr, $expected ) {
211211
$attachment_id = self::factory()->attachment->create_upload_object( TESTS_PLUGIN_DIR . '/tests/testdata/modules/images/dominant-color-images/red.jpg' );
212-
212+
213213
$attachment_image = wp_get_attachment_image( $attachment_id, 'full', '', array( "style" => $style_attr ) );
214214
$this->assertStringContainsString( $expected, $attachment_image );
215215
}

tests/modules/images/webp-uploads/load-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ public function it_should_set_quality_with_image_conversion() {
969969
/**
970970
* Test webp_uploads_modify_webp_quality function for image quality.
971971
*
972-
* @covers ::webp_uploads_modify_webp_quality()
972+
* @covers ::webp_uploads_modify_webp_quality
973973
*
974974
* @test
975975
*/

0 commit comments

Comments
 (0)