Skip to content

Commit cfc6461

Browse files
committed
Fix Table\ImportControllerTest failing test
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 055c878 commit cfc6461

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎libraries/classes/Import/Ajax.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

‎test/classes/Controllers/Table/ImportControllerTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)