@@ -90,11 +90,20 @@ class APIFieldsForeignModelFieldTestCase extends TestCase {
90
90
*/
91
91
public function test_from_internal (): void {
92
92
# Create FirewallAlias objects to use for testing purposes
93
- $ host_alias = new FirewallAlias (data: ['name ' => 'HOST_ALIAS ' , 'type ' => 'host ' , 'address ' => []], async: false );
93
+ $ host_alias = new FirewallAlias (
94
+ data: ['name ' => 'HOST_ALIAS ' , 'type ' => 'host ' , 'address ' => []],
95
+ async: false ,
96
+ );
94
97
$ host_alias ->create ();
95
- $ net_alias = new FirewallAlias (data: ['name ' => 'NET_ALIAS ' , 'type ' => 'network ' , 'address ' => []], async: false );
98
+ $ net_alias = new FirewallAlias (
99
+ data: ['name ' => 'NET_ALIAS ' , 'type ' => 'network ' , 'address ' => []],
100
+ async: false ,
101
+ );
96
102
$ net_alias ->create ();
97
- $ port_alias = new FirewallAlias (data: ['name ' => 'PORT_ALIAS ' , 'type ' => 'port ' , 'address ' => []], async: false );
103
+ $ port_alias = new FirewallAlias (
104
+ data: ['name ' => 'PORT_ALIAS ' , 'type ' => 'port ' , 'address ' => []],
105
+ async: false ,
106
+ );
98
107
$ port_alias ->create ();
99
108
100
109
# Create a ForeignModelField object for testing
@@ -113,11 +122,20 @@ class APIFieldsForeignModelFieldTestCase extends TestCase {
113
122
*/
114
123
public function test_to_internal (): void {
115
124
# Create FirewallAlias objects to use for testing purposes
116
- $ host_alias = new FirewallAlias (data: ['name ' => 'HOST_ALIAS ' , 'type ' => 'host ' , 'address ' => []], async: false );
125
+ $ host_alias = new FirewallAlias (
126
+ data: ['name ' => 'HOST_ALIAS ' , 'type ' => 'host ' , 'address ' => []],
127
+ async: false ,
128
+ );
117
129
$ host_alias ->create ();
118
- $ net_alias = new FirewallAlias (data: ['name ' => 'NET_ALIAS ' , 'type ' => 'network ' , 'address ' => []], async: false );
130
+ $ net_alias = new FirewallAlias (
131
+ data: ['name ' => 'NET_ALIAS ' , 'type ' => 'network ' , 'address ' => []],
132
+ async: false ,
133
+ );
119
134
$ net_alias ->create ();
120
- $ port_alias = new FirewallAlias (data: ['name ' => 'PORT_ALIAS ' , 'type ' => 'port ' , 'address ' => []], async: false );
135
+ $ port_alias = new FirewallAlias (
136
+ data: ['name ' => 'PORT_ALIAS ' , 'type ' => 'port ' , 'address ' => []],
137
+ async: false ,
138
+ );
121
139
$ port_alias ->create ();
122
140
123
141
# Create a ForeignModelField object for testing
@@ -156,7 +174,10 @@ class APIFieldsForeignModelFieldTestCase extends TestCase {
156
174
$ host_alias ->create ();
157
175
$ net_alias = new FirewallAlias (data: ['name ' => 'NET_ALIAS ' , 'type ' => 'network ' , 'address ' => []]);
158
176
$ net_alias ->create ();
159
- $ port_alias = new FirewallAlias (data: ['name ' => 'PORT_ALIAS ' , 'type ' => 'port ' , 'address ' => []], async: false );
177
+ $ port_alias = new FirewallAlias (
178
+ data: ['name ' => 'PORT_ALIAS ' , 'type ' => 'port ' , 'address ' => []],
179
+ async: false ,
180
+ );
160
181
$ port_alias ->create ();
161
182
162
183
# Create a ForeignModelField object that can only relate to FirewallAlias objects that are of `type` network
@@ -197,11 +218,20 @@ class APIFieldsForeignModelFieldTestCase extends TestCase {
197
218
*/
198
219
public function test_get_related_model (): void {
199
220
# Create FirewallAlias objects to use for testing purposes
200
- $ host_alias = new FirewallAlias (data: ['name ' => 'HOST_ALIAS ' , 'type ' => 'host ' , 'address ' => []], async: false );
221
+ $ host_alias = new FirewallAlias (
222
+ data: ['name ' => 'HOST_ALIAS ' , 'type ' => 'host ' , 'address ' => []],
223
+ async: false ,
224
+ );
201
225
$ host_alias ->create ();
202
- $ net_alias = new FirewallAlias (data: ['name ' => 'NET_ALIAS ' , 'type ' => 'network ' , 'address ' => []], async: false );
226
+ $ net_alias = new FirewallAlias (
227
+ data: ['name ' => 'NET_ALIAS ' , 'type ' => 'network ' , 'address ' => []],
228
+ async: false ,
229
+ );
203
230
$ net_alias ->create ();
204
- $ port_alias = new FirewallAlias (data: ['name ' => 'PORT_ALIAS ' , 'type ' => 'port ' , 'address ' => []], async: false );
231
+ $ port_alias = new FirewallAlias (
232
+ data: ['name ' => 'PORT_ALIAS ' , 'type ' => 'port ' , 'address ' => []],
233
+ async: false ,
234
+ );
205
235
$ port_alias ->create ();
206
236
207
237
# Create a non `many` ForeignModelField object
@@ -240,7 +270,7 @@ class APIFieldsForeignModelFieldTestCase extends TestCase {
240
270
bandwidth: 100 ,
241
271
bandwidthtype: 'Mb ' ,
242
272
queue: [['name ' => 'TestQueue1 ' , 'qlimit ' => 50 , 'bandwidth ' => 50 , 'bandwidthtype ' => 'Mb ' ]],
243
- async: false
273
+ async: false ,
244
274
);
245
275
$ shaper1 ->create ();
246
276
$ shaper2 = new TrafficShaper (
@@ -249,7 +279,7 @@ class APIFieldsForeignModelFieldTestCase extends TestCase {
249
279
bandwidth: 100 ,
250
280
bandwidthtype: 'Mb ' ,
251
281
queue: [['name ' => 'TestQueue2 ' , 'qlimit ' => 50 , 'bandwidth ' => 50 , 'bandwidthtype ' => 'Mb ' ]],
252
- async: false
282
+ async: false ,
253
283
);
254
284
$ shaper2 ->create (apply: true );
255
285
0 commit comments