Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31e9564

Browse files
Remove configuration that is not used in tests
1 parent fec5c23 commit 31e9564

File tree

2 files changed

+20
-74
lines changed

2 files changed

+20
-74
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflows.php

Lines changed: 8 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,12 @@
1414
),
1515
'initial_place' => 'draft',
1616
'places' => array(
17-
'draft' => array(),
18-
'wait_for_journalist' => array(
19-
'metadata' => array(
20-
'dump_style' => array(
21-
'description' => 'My custom place label',
22-
'background_color' => '#8800FF',
23-
),
24-
),
25-
),
26-
'approved_by_journalist' => array(),
27-
'wait_for_spellchecker' => array(),
28-
'approved_by_spellchecker' => array(),
29-
'published' => array(),
17+
'draft',
18+
'wait_for_journalist',
19+
'approved_by_journalist',
20+
'wait_for_spellchecker',
21+
'approved_by_spellchecker',
22+
'published',
3023
),
3124
'transitions' => array(
3225
'request_review' => array(
@@ -36,12 +29,6 @@
3629
'journalist_approval' => array(
3730
'from' => 'wait_for_journalist',
3831
'to' => 'approved_by_journalist',
39-
'metadata' => array(
40-
'dump_style' => array(
41-
'description' => 'My custom transition label',
42-
'background_color' => 'Chartreuse',
43-
),
44-
),
4532
),
4633
'spellchecker_approval' => array(
4734
'from' => 'wait_for_spellchecker',
@@ -72,35 +59,17 @@
7259
),
7360
),
7461
'coding' => null,
75-
'travis' => array(
76-
'metadata' => array(
77-
'dump_style' => array(
78-
'description' => 'My custom description',
79-
'background_color' => '#8800FF',
80-
),
81-
),
82-
),
62+
'travis' => null,
8363
'review' => null,
8464
'merged' => null,
85-
'closed' => array(
86-
'metadata' => array(
87-
'dump_style' => array(
88-
'background_color' => 'DeepSkyBlue',
89-
),
90-
),
91-
),
65+
'closed' => null,
9266
),
9367
'transitions' => array(
9468
'submit' => array(
9569
'from' => 'start',
9670
'to' => 'travis',
9771
'metadata' => array(
9872
'title' => 'transition submit title',
99-
'dump_style' => array(
100-
'label' => 'My custom label',
101-
'arrow_color' => '#0088FF',
102-
'label_color' => 'Red',
103-
),
10473
),
10574
),
10675
'update' => array(
@@ -122,11 +91,6 @@
12291
'reject' => array(
12392
'from' => 'review',
12493
'to' => 'closed',
125-
'metadata' => array(
126-
'dump_style' => array(
127-
'arrow_color' => 'Red',
128-
),
129-
),
13094
),
13195
'reopen' => array(
13296
'from' => 'closed',

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/workflows.yml

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@ framework:
88
- Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest
99
initial_place: draft
1010
places:
11-
draft: ~
12-
wait_for_journalist:
13-
metadata:
14-
dump_style:
15-
label: 'My custom place label'
16-
background_color: '#8800FF'
17-
approved_by_journalist: ~
18-
wait_for_spellchecker: ~
19-
approved_by_spellchecker: ~
20-
published: ~
11+
# simple format
12+
- draft
13+
- wait_for_journalist
14+
- approved_by_journalist
15+
- wait_for_spellchecker
16+
- approved_by_spellchecker
17+
- published
2118
transitions:
2219
request_review:
2320
from: [draft]
@@ -28,10 +25,6 @@ framework:
2825
spellchecker_approval:
2926
from: [wait_for_spellchecker]
3027
to: [approved_by_spellchecker]
31-
metadata:
32-
dump_style:
33-
label: 'My custom transition label'
34-
background_color: 'Chartreuse'
3528
publish:
3629
from: [approved_by_journalist, approved_by_spellchecker]
3730
to: [published]
@@ -49,27 +42,19 @@ framework:
4942
metadata:
5043
title: place start title
5144
coding: ~
52-
travis:
53-
metadata:
54-
dump_style:
55-
description: 'My custom description'
56-
background_color: '#8800FF'
45+
travis: ~
5746
review: ~
5847
merged: ~
59-
closed:
60-
metadata:
61-
dump_style:
62-
background_color: DeepSkyBlue
48+
closed: ~
6349
transitions:
6450
submit:
6551
from: start
6652
to: travis
6753
metadata:
6854
title: transition submit title
69-
dump_style:
70-
label: 'My custom label'
71-
arrow_color: '#0088FF'
72-
label_color: 'Red'
55+
label: 'My custom transition label'
56+
color: 'Red'
57+
arrow_color: '#0088FF'
7358
update:
7459
from: [coding, travis, review]
7560
to: travis
@@ -85,9 +70,6 @@ framework:
8570
reject:
8671
from: review
8772
to: closed
88-
metadata:
89-
dump_style:
90-
arrow_color: 'Red'
9173
reopen:
9274
from: closed
9375
to: review

0 commit comments

Comments
 (0)