Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/classes/Navigation/Nodes/NodeEventTest.php')
-rw-r--r--test/classes/Navigation/Nodes/NodeEventTest.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/classes/Navigation/Nodes/NodeEventTest.php b/test/classes/Navigation/Nodes/NodeEventTest.php
index 0cecd3881b..1b7f8511ad 100644
--- a/test/classes/Navigation/Nodes/NodeEventTest.php
+++ b/test/classes/Navigation/Nodes/NodeEventTest.php
@@ -25,13 +25,19 @@ class NodeEventTest extends AbstractTestCase
public function testConstructor(): void
{
$parent = NodeFactory::getInstance('NodeEvent');
- $this->assertArrayHasKey(
- 'text',
+ $this->assertIsArray($parent->links);
+ $this->assertEquals(
+ [
+ 'text' => [
+ 'route' => '/database/events',
+ 'params' => ['edit_item' => 1, 'db' => null, 'item_name' => null],
+ ],
+ 'icon' => [
+ 'route' => '/database/events',
+ 'params' => ['export_item' => 1, 'db' => null, 'item_name' => null],
+ ],
+ ],
$parent->links
);
- $this->assertStringContainsString(
- 'index.php?route=/database/events',
- $parent->links['text']
- );
}
}