phpmyadmin/test/classes/Navigation/Nodes/NodeIndexContainerTest.php
Maurício Meneghini Fauth 990f801123 Use camel case names in Navigation classes
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-06-11 20:55:34 -03:00

52 lines
1.1 KiB
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Tests for PhpMyAdmin\Navigation\Nodes\NodeIndexContainer class
*
* @package PhpMyAdmin-test
*/
declare(strict_types=1);
namespace PhpMyAdmin\Tests\Navigation\Nodes;
use PhpMyAdmin\Navigation\NodeFactory;
use PhpMyAdmin\Tests\PmaTestCase;
use PhpMyAdmin\Theme;
/**
* Tests for PhpMyAdmin\Navigation\Nodes\NodeIndexContainer class
*
* @package PhpMyAdmin-test
*/
class NodeIndexContainerTest extends PmaTestCase
{
/**
* SetUp for test cases
*
* @return void
*/
protected function setUp(): void
{
$GLOBALS['server'] = 0;
}
/**
* Test for __construct
*
* @return void
*/
public function testConstructor()
{
$parent = NodeFactory::getInstance('NodeIndexContainer');
$this->assertArrayHasKey(
'text',
$parent->links
);
$this->assertStringContainsString(
'tbl_structure.php',
$parent->links['text']
);
$this->assertEquals('indexes', $parent->realName);
}
}