Merge branch 'QA_5_2'

This commit is contained in:
Maurício Meneghini Fauth 2022-03-25 16:45:50 -03:00
commit b29afef33a
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
3 changed files with 15 additions and 5 deletions

View File

@ -8770,11 +8770,6 @@ parameters:
count: 1
path: libraries/classes/Utils/HttpRequest.php
-
message: "#^Parameter \\#2 \\$httpStatus of method PhpMyAdmin\\\\Utils\\\\HttpRequest\\:\\:response\\(\\) expects int, mixed given\\.$#"
count: 1
path: libraries/classes/Utils/HttpRequest.php
-
message: "#^Variable \\$http_response_header in isset\\(\\) always exists and is not nullable\\.$#"
count: 1

View File

@ -200,6 +200,13 @@ class GitTest extends AbstractTestCase
$commit = $this->object->checkGitRevision();
if (
$commit === null
&& ! isset($_SESSION['PMA_VERSION_REMOTECOMMIT_17bf8b7309919f8ac593d7c563b31472780ee83b'])
) {
$this->markTestSkipped('Unable to get remote commit information.');
}
$this->assertIsArray($commit);
$this->assertArrayHasKey('hash', $commit);
$this->assertEquals('17bf8b7309919f8ac593d7c563b31472780ee83b', $commit['hash']);
@ -317,6 +324,13 @@ class GitTest extends AbstractTestCase
$commit = $this->object->checkGitRevision();
if (
$commit === null
&& ! isset($_SESSION['PMA_VERSION_REMOTECOMMIT_17bf8b7309919f8ac593d7c563b31472780ee83b'])
) {
$this->markTestSkipped('Unable to get remote commit information.');
}
$this->assertIsArray($commit);
$this->assertArrayHasKey('hash', $commit);
$this->assertEquals('17bf8b7309919f8ac593d7c563b31472780ee83b', $commit['hash']);

View File

@ -14,6 +14,7 @@ use function tempnam;
use function unlink;
/**
* @covers \PhpMyAdmin\OpenDocument
* @requires extension zip
*/
class OpenDocumentTest extends AbstractTestCase