createDatabaseInterface(); $GLOBALS['server'] = 0; } /** * Test for __construct */ public function testConstructor(): void { $parent = NodeFactory::getInstance('NodeIndex'); $this->assertIsArray($parent->links); $this->assertEquals( [ 'text' => ['route' => '/table/indexes', 'params' => ['db' => null, 'table' => null, 'index' => null]], 'icon' => ['route' => '/table/indexes', 'params' => ['db' => null, 'table' => null, 'index' => null]], ], $parent->links ); } }