phpmyadmin/test/classes/Navigation/Nodes/NodeEventContainerTest.php
Maurício Meneghini Fauth 1a14b3e4d3 Remove vim modelines
These settings are no longer required as they are guaranteed through
other coding standard tools.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-09-02 09:43:21 -03:00

52 lines
1.1 KiB
PHP

<?php
/**
* Tests for PhpMyAdmin\Navigation\Nodes\NodeEventContainer class
*
* @package PhpMyAdmin-test
*/
declare(strict_types=1);
namespace PhpMyAdmin\Tests\Navigation\Nodes;
use PhpMyAdmin\Navigation\NodeFactory;
use PhpMyAdmin\Tests\PmaTestCase;
use PhpMyAdmin\Theme;
use PhpMyAdmin\Url;
/**
* Tests for PhpMyAdmin\Navigation\Nodes\NodeEventContainer class
*
* @package PhpMyAdmin-test
*/
class NodeEventContainerTest 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('NodeEventContainer');
$this->assertArrayHasKey(
'text',
$parent->links
);
$this->assertStringContainsString(
Url::getFromRoute('/database/events'),
$parent->links['text']
);
$this->assertEquals('events', $parent->realName);
}
}