diff --git a/Tests/Integration/inc/classes/Media/upload.php b/Tests/Integration/inc/classes/Media/upload.php new file mode 100644 index 00000000..8482f1be --- /dev/null +++ b/Tests/Integration/inc/classes/Media/upload.php @@ -0,0 +1,67 @@ +view_instance) { + + } + parent::tear_down(); + } + + public function set_up() { + + parent::set_up(); + } + + public function testShouldReturnExpected() { + $upload = new \Imagify\Media\Upload\Upload(); + + add_filter( 'imagify_display_library_stats', '__return_true' ); + + $this->mock_imagify_count_functions(); + ob_start(); + $upload->add_imagify_filter_to_attachments_dropdown(); + $output = ob_get_clean(); + + $this->assertStringContainsString( 'Filter by status', $output ); + $this->assertStringContainsString( ''; echo ''; - + $filter_value = ''; foreach ( $options as $value => $label ) { if ( isset( ${$value} ) ) { $filter_value = ' (' . ${$value} . ')';