diff --git a/tests/Collection/NodeTest.php b/tests/Collection/NodeTest.php index 9b58800..2703bca 100644 --- a/tests/Collection/NodeTest.php +++ b/tests/Collection/NodeTest.php @@ -9,9 +9,10 @@ class NodeTest extends TestCase { public function testNode(): void { - $node = new Node('node1', 4); + $node = new Node('node1', 4, ['a' => 'b']); $this->assertSame('node1', $node->getName()); $this->assertSame(4, $node->getWeight()); + $this->assertSame('b', $node->getInfo()['a']); } }