1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00
Files
phpmyadmin/test/classes/ConsoleTest.php
Maurício Meneghini Fauth 346923e20a Set dbi only when the test needs it
Related to https://github.com/phpmyadmin/phpmyadmin/pull/17637

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-07-14 02:21:45 -03:00

21 lines
391 B
PHP

<?php
declare(strict_types=1);
namespace PhpMyAdmin\Tests;
use PhpMyAdmin\Console;
/**
* @covers \PhpMyAdmin\Console
*/
class ConsoleTest extends AbstractTestCase
{
public function testGetScripts(): void
{
$GLOBALS['dbi'] = $this->createDatabaseInterface();
$console = new Console();
$this->assertEquals(['console.js'], $console->getScripts());
}
}