Skip to content

Commit bbf9305

Browse files
committed
Extend Yaml manipulator add_item_and_sort test
1 parent af91f01 commit bbf9305

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
page_types:
2+
- App\Entity\Page\ContentPage
3+
- App\Entity\Page\ErrorPage
4+
- App\Entity\Page\HomePage
5+
- App\Entity\Page\OverviewPage
6+
options:
7+
A: 1
8+
B: 2
9+
===
10+
$data['page_types'][] = 'App\Entity\Page\NewsPage';
11+
sort($data['page_types'], SORT_NATURAL);
12+
===
13+
page_types:
14+
- App\Entity\Page\ContentPage
15+
- App\Entity\Page\ErrorPage
16+
- App\Entity\Page\HomePage
17+
- App\Entity\Page\NewsPage
18+
- App\Entity\Page\OverviewPage
19+
options:
20+
A: 1
21+
B: 2

0 commit comments

Comments
 (0)