Skip to content

Commit ef385e2

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents df0cd9d + b5a0c10 commit ef385e2

4 files changed

Lines changed: 148 additions & 145 deletions

File tree

libraries/classes/Sql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ private function getMessageForNoRowsReturned(
890890
StatementInfo $statementInfo,
891891
$numRows
892892
): Message {
893-
if ($statementInfo->queryType === 'DELETE"') {
893+
if ($statementInfo->queryType === 'DELETE') {
894894
$message = Message::getMessageForDeletedRows($numRows);
895895
} elseif ($statementInfo->isInsert) {
896896
if ($statementInfo->queryType === 'REPLACE') {

test/classes/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public function testCheckConfigSource(): void
501501
$this->assertFalse($this->object->checkConfigSource());
502502
$this->assertEquals(0, $this->object->sourceMtime);
503503

504-
$this->object->setSource(ROOT_PATH . 'test/test_data/config.inc.php');
504+
$this->object->setSource(TEST_PATH . 'test/test_data/config.inc.php');
505505

506506
$this->assertNotEmpty($this->object->getSource());
507507
$this->assertTrue($this->object->checkConfigSource());

test/classes/RoutingTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use function unlink;
1313

1414
use const CACHE_DIR;
15-
use const ROOT_PATH;
15+
use const TEST_PATH;
1616

1717
/**
1818
* @covers \PhpMyAdmin\Routing
@@ -26,8 +26,8 @@ public function testGetDispatcher(): void
2626
{
2727
$expected = [Dispatcher::FOUND, HomeController::class, []];
2828
$cacheFilename = CACHE_DIR . 'routes.cache.php';
29-
$validCacheFilename = ROOT_PATH . 'test/test_data/routes/routes-valid.cache.txt';
30-
$invalidCacheFilename = ROOT_PATH . 'test/test_data/routes/routes-invalid.cache.txt';
29+
$validCacheFilename = TEST_PATH . 'test/test_data/routes/routes-valid.cache.txt';
30+
$invalidCacheFilename = TEST_PATH . 'test/test_data/routes/routes-invalid.cache.txt';
3131
$GLOBALS['cfg']['environment'] = null;
3232

3333
$this->assertDirectoryIsWritable(CACHE_DIR);

0 commit comments

Comments
 (0)