Skip to content

Commit

Permalink
Add testcase for nested extra keys
Browse files Browse the repository at this point in the history
The RouteVoter want multiple values in order to mark an item as active.
  • Loading branch information
Baachi committed Mar 1, 2023
1 parent 538ee5f commit f11c6f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ main:
extras:
key1: value1
key2: value2
routes:
- pattern: /^foo/
- pattern: /^bar/
four_item:
label: "Four Item Label"
order: 40
Expand Down
2 changes: 2 additions & 0 deletions Tests/Provider/ConfigurationMenuProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public function testGet(): void
'key1' => 'value1',
'key2' => 'value2',
'routes' => array(
array('pattern' => '/^foo/'),
array('pattern' => '/^bar/'),
array('route' => 'my_route', 'parameters' => array('test' => 'test1'))
)
),
Expand Down

0 comments on commit f11c6f4

Please sign in to comment.