Skip to content

Commit 2c3009b

Browse files
committed
minor #837 Extend Yaml manipulator add_item_and_sort test (7ochem)
This PR was merged into the 1.0-dev branch. Discussion ---------- Extend Yaml manipulator add_item_and_sort test This case is the subject of issue #618 Apparently this does work now, because it passes the test. Maybe it still is a good idea to extend this test so no bugs will creep in in the future Commits ------- bbf9305 Extend Yaml manipulator add_item_and_sort test
2 parents 36df979 + bbf9305 commit 2c3009b

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)