phpmyadmin/tests/classes/Navigation/Nodes/NodeEventContainerTest.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

30 lines
790 B
PHP

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