@@ -54,17 +54,17 @@ protected function setUp()
54
54
public function testFixManagersAutoMappingsWithTwoAutomappings ()
55
55
{
56
56
$ emConfigs = array (
57
- 'em1 ' => array (
58
- 'auto_mapping ' => true
57
+ 'em1 ' => array (
58
+ 'auto_mapping ' => true ,
59
59
),
60
- 'em2 ' => array (
61
- 'auto_mapping ' => true
60
+ 'em2 ' => array (
61
+ 'auto_mapping ' => true ,
62
62
),
63
63
);
64
64
65
65
$ bundles = array (
66
- 'FristBundle ' => 'My\FristBundle ' ,
67
- 'SecondBundle ' => 'My\SecondBundle ' ,
66
+ 'FristBundle ' => 'My\FristBundle ' ,
67
+ 'SecondBundle ' => 'My\SecondBundle ' ,
68
68
);
69
69
70
70
$ reflection = new \ReflectionClass (get_class ($ this ->extension ));
@@ -79,65 +79,65 @@ public function getAutomappingData()
79
79
return array (
80
80
array (
81
81
array ( // no auto mapping on em1
82
- 'auto_mapping ' => false
82
+ 'auto_mapping ' => false ,
83
83
),
84
84
array ( // no auto mapping on em2
85
- 'auto_mapping ' => false
85
+ 'auto_mapping ' => false ,
86
86
),
87
87
array (),
88
- array ()
88
+ array (),
89
89
),
90
90
array (
91
91
array ( // no auto mapping on em1
92
- 'auto_mapping ' => false
92
+ 'auto_mapping ' => false ,
93
93
),
94
94
array ( // auto mapping enabled on em2
95
- 'auto_mapping ' => true
95
+ 'auto_mapping ' => true ,
96
96
),
97
97
array (),
98
98
array (
99
99
'mappings ' => array (
100
100
'FristBundle ' => array (
101
101
'mapping ' => true ,
102
- 'is_bundle ' => true
102
+ 'is_bundle ' => true ,
103
103
),
104
104
'SecondBundle ' => array (
105
105
'mapping ' => true ,
106
- 'is_bundle ' => true
107
- )
108
- )
109
- )
106
+ 'is_bundle ' => true ,
107
+ ),
108
+ ),
109
+ ),
110
110
),
111
111
array (
112
112
array ( // no auto mapping on em1, but it defines SecondBundle as own
113
113
'auto_mapping ' => false ,
114
114
'mappings ' => array (
115
115
'SecondBundle ' => array (
116
116
'mapping ' => true ,
117
- 'is_bundle ' => true
118
- )
119
- )
117
+ 'is_bundle ' => true ,
118
+ ),
119
+ ),
120
120
),
121
121
array ( // auto mapping enabled on em2
122
- 'auto_mapping ' => true
122
+ 'auto_mapping ' => true ,
123
123
),
124
124
array (
125
125
'mappings ' => array (
126
126
'SecondBundle ' => array (
127
127
'mapping ' => true ,
128
- 'is_bundle ' => true
129
- )
130
- )
128
+ 'is_bundle ' => true ,
129
+ ),
130
+ ),
131
131
),
132
132
array (
133
133
'mappings ' => array (
134
134
'FristBundle ' => array (
135
135
'mapping ' => true ,
136
- 'is_bundle ' => true
137
- )
138
- )
139
- )
140
- )
136
+ 'is_bundle ' => true ,
137
+ ),
138
+ ),
139
+ ),
140
+ ),
141
141
);
142
142
}
143
143
@@ -147,13 +147,13 @@ public function getAutomappingData()
147
147
public function testFixManagersAutoMappings (array $ originalEm1 , array $ originalEm2 , array $ expectedEm1 , array $ expectedEm2 )
148
148
{
149
149
$ emConfigs = array (
150
- 'em1 ' => $ originalEm1 ,
151
- 'em2 ' => $ originalEm2 ,
150
+ 'em1 ' => $ originalEm1 ,
151
+ 'em2 ' => $ originalEm2 ,
152
152
);
153
153
154
154
$ bundles = array (
155
- 'FristBundle ' => 'My\FristBundle ' ,
156
- 'SecondBundle ' => 'My\SecondBundle ' ,
155
+ 'FristBundle ' => 'My\FristBundle ' ,
156
+ 'SecondBundle ' => 'My\SecondBundle ' ,
157
157
);
158
158
159
159
$ reflection = new \ReflectionClass (get_class ($ this ->extension ));
@@ -163,10 +163,10 @@ public function testFixManagersAutoMappings(array $originalEm1, array $originalE
163
163
$ newEmConfigs = $ method ->invoke ($ this ->extension , $ emConfigs , $ bundles );
164
164
165
165
$ this ->assertEquals ($ newEmConfigs ["em1 " ], array_merge (array (
166
- 'auto_mapping ' => false
166
+ 'auto_mapping ' => false ,
167
167
), $ expectedEm1 ));
168
168
$ this ->assertEquals ($ newEmConfigs ["em2 " ], array_merge (array (
169
- 'auto_mapping ' => false
169
+ 'auto_mapping ' => false ,
170
170
), $ expectedEm2 ));
171
171
}
172
172
0 commit comments