Skip to content

Commit

Permalink
Fix Table/DeleteConfirmControllerTest db name
Browse files Browse the repository at this point in the history
Introduced by 49a3931.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Feb 27, 2022
1 parent ab9f1c6 commit 0b37a84
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ public function testDeleteConfirmController(): void
{
$GLOBALS['db'] = 'test_db';
$GLOBALS['table'] = 'test_table';
$GLOBALS['sql_query'] = 'SELECT * FROM `test_table`.`test_table`';
$GLOBALS['sql_query'] = 'SELECT * FROM `test_db`.`test_table`';
$_POST = [
'db' => 'test_db',
'table' => 'test_table',
'rows_to_delete' => ['`test_table`.`id` = 2', '`test_table`.`id` = 3'],
'sql_query' => 'SELECT * FROM `test_table`.`test_table`',
'sql_query' => 'SELECT * FROM `test_db`.`test_table`',
];

$this->dummyDbi->addSelectDb('test_db');
Expand All @@ -35,7 +35,7 @@ public function testDeleteConfirmController(): void
'db' => 'test_db',
'table' => 'test_table',
'selected' => ['`test_table`.`id` = 2', '`test_table`.`id` = 3'],
'sql_query' => 'SELECT * FROM `test_table`.`test_table`',
'sql_query' => 'SELECT * FROM `test_db`.`test_table`',
'is_foreign_key_check' => true,
]);

Expand Down

0 comments on commit 0b37a84

Please sign in to comment.