Skip to content

Commit

Permalink
Fix covers tags and a couple typos
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed May 16, 2023
1 parent 916dd25 commit 5e498d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -48,10 +48,10 @@ public function test_dominant_color_get_dominant_color( $image_path, $expected_c
*
* @dataProvider provider_get_dominant_color
*
* @covers ::has_transparency_metadata
* @covers ::dominant_color_metadata
*/
public function test_has_transparency_metadata( $image_path, $expected_color, $expected_transparency ) {
// Non existing attachment.
// Non-existing attachment.
$transparency_metadata = dominant_color_metadata( array(), 1 );
$this->assertEmpty( $transparency_metadata );

Expand Down Expand Up @@ -209,7 +209,7 @@ public function data_provider_dominant_color_check_inline_style() {
*/
public function test_dominant_color_update_attachment_image_attributes( $style_attr, $expected ) {
$attachment_id = self::factory()->attachment->create_upload_object( TESTS_PLUGIN_DIR . '/tests/testdata/modules/images/dominant-color-images/red.jpg' );

$attachment_image = wp_get_attachment_image( $attachment_id, 'full', '', array( "style" => $style_attr ) );
$this->assertStringContainsString( $expected, $attachment_image );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/images/webp-uploads/load-tests.php
Expand Up @@ -969,7 +969,7 @@ public function it_should_set_quality_with_image_conversion() {
/**
* Test webp_uploads_modify_webp_quality function for image quality.
*
* @covers ::webp_uploads_modify_webp_quality()
* @covers ::webp_uploads_modify_webp_quality
*
* @test
*/
Expand Down

0 comments on commit 5e498d1

Please sign in to comment.