Skip to content

Commit 2b0cc90

Browse files
Fixed integration tests.
1 parent 4a7e056 commit 2b0cc90

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/views/bulk-optimization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
if ( 0 == $stats['uploaded-images'] + $stats['available-unoptimised-sizes'] ) {
5050
esc_html_e( 'This page is designed to bulk optimize all your images.', 'tiny-compress-images' );
5151
echo ' ';
52-
esc_html_e( 'You don\'t seem to have uploaded any JPEG or PNG images yet.', 'tiny-compress-images' );
52+
esc_html_e( 'You do not seem to have uploaded any JPEG or PNG images yet.', 'tiny-compress-images' );
5353
} elseif ( 0 == sizeof( $active_tinify_sizes ) ) {
5454
esc_html_e( 'Based on your current settings, nothing will be optimized. There are no active sizes selected for optimization.', 'tiny-compress-images' );
5555
} elseif ( 0 == $stats['available-unoptimised-sizes'] ) {

src/views/dashboard-widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div class="panda-background"></div>
2222
<div class="grass"></div>
2323
<div class="media-library-optimized" id="no-images-uploaded">
24-
<p><?php esc_html_e( 'You don\'t seem to have uploaded any JPEG or PNG images yet.', 'tiny-compress-images' ) ?></p>
24+
<p><?php esc_html_e( 'You do not seem to have uploaded any JPEG or PNG images yet.', 'tiny-compress-images' ) ?></p>
2525
</div>
2626
<div class="media-library-optimized" id="widget-not-optimized">
2727
<p>

test/integration/DashboardWidgetIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ public function tear_down() {
1616

1717
public function test_should_show_widget_without_images() {
1818
$element = $this->find(
19-
'#tinypng_dashboard_widget #no-images-uploaded p'
19+
'#no-images-uploaded p'
2020
);
2121

2222
$this->assertEquals(
23-
'You don\'t seem to have uploaded any JPEG or PNG images yet.',
23+
'You do not seem to have uploaded any JPEG or PNG images yet.',
2424
$element->getText()
2525
);
2626
}

0 commit comments

Comments
 (0)