Fix #16162 - Update InsertEditTest::testGetLinkForRelationalDisplayField
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
b32904ba9f
commit
c4d2d0dce5
@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Core;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\InsertEdit;
|
||||
use PhpMyAdmin\Response;
|
||||
@ -2924,8 +2925,13 @@ class InsertEditTest extends TestCase
|
||||
|
||||
$result = $this->insertEdit->getLinkForRelationalDisplayField($map, 'f', "=1", "a>", "b<");
|
||||
|
||||
$sqlSignature = Core::signSqlQuery(
|
||||
'SELECT * FROM `information_schema`.`TABLES` WHERE' . ' `f`=1'
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
'<a href="sql.php?db=information_schema&table=TABLES&pos=0&'
|
||||
. 'sql_signature=' . $sqlSignature . '&'
|
||||
. 'sql_query=SELECT+%2A+FROM+%60information_schema%60.%60TABLES%60+WHERE'
|
||||
. '+%60f%60%3D1&lang=en" title="a>">b<</a>',
|
||||
$result
|
||||
@ -2936,6 +2942,7 @@ class InsertEditTest extends TestCase
|
||||
|
||||
$this->assertEquals(
|
||||
'<a href="sql.php?db=information_schema&table=TABLES&pos=0&'
|
||||
. 'sql_signature=' . $sqlSignature . '&'
|
||||
. 'sql_query=SELECT+%2A+FROM+%60information_schema%60.%60TABLES%60+WHERE'
|
||||
. '+%60f%60%3D1&lang=en" title="b<">a></a>',
|
||||
$result
|
||||
|
||||
Loading…
Reference in New Issue
Block a user