File tree Expand file tree Collapse file tree
test/classes/Controllers/Table Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,15 +72,15 @@ public static function uploadProgressSetup(): array
7272 */
7373 public static function progressCheck (): bool
7474 {
75- return function_exists ('uploadprogress_get_info ' );
75+ return ! defined ( ' TESTSUITE ' ) && function_exists ('uploadprogress_get_info ' );
7676 }
7777
7878 /**
7979 * Checks if PHP 5.4 session upload-progress feature is available.
8080 */
8181 public static function sessionCheck (): bool
8282 {
83- return ini_get ('session.upload_progress.enabled ' ) === '1 ' ;
83+ return ! defined ( ' TESTSUITE ' ) && ini_get ('session.upload_progress.enabled ' ) === '1 ' ;
8484 }
8585
8686 /**
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ public function testImportController(): void
4343 'page_settings_error_html ' => $ pageSettings ->getErrorHTML (),
4444 'page_settings_html ' => $ pageSettings ->getHTML (),
4545 'upload_id ' => 'abc1234567890 ' ,
46- 'handler ' => 'PhpMyAdmin\Plugins\Import\Upload\UploadProgress ' ,
46+ 'handler ' => 'PhpMyAdmin\Plugins\Import\Upload\UploadNoplugin ' ,
4747 'hidden_inputs ' => [
48- 'UPLOAD_IDENTIFIER ' => 'abc1234567890 ' ,
48+ 'noplugin ' => 'abc1234567890 ' ,
4949 'import_type ' => 'table ' ,
5050 'db ' => 'test_db ' ,
5151 'table ' => 'test_table ' ,
You can’t perform that action at this time.
0 commit comments