File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ' ) {
Original file line number Diff line number Diff 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 ());
Original file line number Diff line number Diff line change 1212use function unlink ;
1313
1414use 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 );
You can’t perform that action at this time.
0 commit comments