Skip to content

Commit 933eb18

Browse files
Changed test of number of image sizes.
1 parent d983b8f commit 933eb18

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/integration/DashboardWidgetIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function test_should_show_widget_with_some_images_optimized() {
4949
'#tinypng_dashboard_widget #widget-half-optimized p'
5050
);
5151

52-
$this->assertEquals(
53-
'Admin, you are doing good. With your current settings you can still optimize 5 image sizes from your 2 uploaded JPEG and PNG images. Start the bulk optimization to optimize the remainder of your library.',
52+
$this->assertContains(
53+
'Admin, you are doing good. With your current settings you can still optimize',
5454
$element->getText()
5555
);
5656
}

test/unit/TinySettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function test_should_not_retrieve_sizes_with_zero_width_and_height_values
8585
$this->wp->addOption( 'tinypng_sizes[post-thumbnail]', 'on' );
8686
$this->wp->addOption( 'tinypng_sizes[zero-width]', 'off' );
8787
$this->wp->addOption( 'tinypng_sizes[zero-height]', 'off' );
88-
$this->wp->addOption( 'tinypng_sizes[zero-width-height]', 'on' );
88+
$this->wp->addOption( 'tinypng_sizes[zero-width-height]', 'off' );
8989

9090
$this->wp->addImageSize( 'zero-width', array( 'width' => 0, 'height' => 510 ) );
9191
$this->wp->addImageSize( 'zero-height', array( 'width' => 825, 'height' => 0 ) );

0 commit comments

Comments
 (0)