phpmyadmin/tests/classes/Navigation/Nodes/NodeViewContainerTest.php
Maurício Meneghini Fauth 1d1c55e250
Move test directory to tests
- Related to #18512

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-11-30 10:47:42 -03:00

31 lines
913 B
PHP

<?php
declare(strict_types=1);
namespace PhpMyAdmin\Tests\Navigation\Nodes;
use PhpMyAdmin\Navigation\Nodes\NodeViewContainer;
use PhpMyAdmin\Tests\AbstractTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(NodeViewContainer::class)]
class NodeViewContainerTest extends AbstractTestCase
{
/**
* Test for __construct
*/
public function testConstructor(): void
{
$parent = new NodeViewContainer();
$this->assertEquals(
[
'text' => ['route' => '/database/structure', 'params' => ['tbl_type' => 'view', 'db' => null]],
'icon' => ['route' => '/database/structure', 'params' => ['tbl_type' => 'view', 'db' => null]],
],
$parent->links,
);
$this->assertEquals('views', $parent->realName);
$this->assertStringContainsString('viewContainer', $parent->classes);
}
}