Fix #16162 - Update InsertEditTest::testGetLinkForRelationalDisplayField

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-06-11 01:05:00 +02:00
parent b32904ba9f
commit c4d2d0dce5
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -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&amp;table=TABLES&amp;pos=0&amp;'
. 'sql_signature=' . $sqlSignature . '&amp;'
. 'sql_query=SELECT+%2A+FROM+%60information_schema%60.%60TABLES%60+WHERE'
. '+%60f%60%3D1&amp;lang=en" title="a&gt;">b&lt;</a>',
$result
@ -2936,6 +2942,7 @@ class InsertEditTest extends TestCase
$this->assertEquals(
'<a href="sql.php?db=information_schema&amp;table=TABLES&amp;pos=0&amp;'
. 'sql_signature=' . $sqlSignature . '&amp;'
. 'sql_query=SELECT+%2A+FROM+%60information_schema%60.%60TABLES%60+WHERE'
. '+%60f%60%3D1&amp;lang=en" title="b&lt;">a&gt;</a>',
$result