File tree Expand file tree Collapse file tree 4 files changed +3
-106
lines changed Expand file tree Collapse file tree 4 files changed +3
-106
lines changed Original file line number Diff line number Diff line change 11
11
use Flat3 \Lodata \Tests \Laravel \Models \Repository as RepositoryModel ;
12
12
use Flat3 \Lodata \Tests \TestCase ;
13
13
14
+ /**
15
+ * @requires PHP < 7.4
16
+ */
14
17
class Repository73Test extends TestCase
15
18
{
16
19
public function setUp (): void
Original file line number Diff line number Diff line change 71
71
</Record >
72
72
</Annotation >
73
73
</EntitySet >
74
- <FunctionImport Name =" op1" Function =" com.example.odata.op1" />
75
- <FunctionImport Name =" op2" Function =" com.example.odata.op2" />
76
74
</EntityContainer >
77
75
<EntityType Name =" Airport" >
78
76
<Key >
90
88
<Property Name =" is_big" Type =" Edm.Boolean" Nullable =" true" />
91
89
<Property Name =" country_id" Type =" Edm.Int64" Nullable =" true" />
92
90
</EntityType >
93
- <Function Name =" op1" IsBound =" false" >
94
- <ReturnType Type =" Edm.String" Nullable =" true" />
95
- </Function >
96
- <Function Name =" op2" IsBound =" false" >
97
- <Parameter Name =" prefix" Type =" Edm.String" Nullable =" false" />
98
- <ReturnType Type =" Edm.String" Nullable =" false" />
99
- </Function >
100
91
<Function Name =" code" IsBound =" true" >
101
92
<Parameter Name =" airport" Type =" com.example.odata.Airport" Nullable =" false" />
102
93
<Parameter Name =" suffix" Type =" Edm.String" Nullable =" true" />
Original file line number Diff line number Diff line change 61
61
"ContentIDSupported" : true
62
62
}
63
63
},
64
- "op1Import" : {
65
- "$Function" : " com.example.odata.op1"
66
- },
67
- "op2Import" : {
68
- "$Function" : " com.example.odata.op2"
69
- },
70
64
"$Annotations" : {
71
65
"com.example.odata.DefaultContainer" : {
72
66
"@Org.OData.Core.V1.ConventionalIDs" : true ,
148
142
"$Nullable" : true
149
143
}
150
144
},
151
- "op1" : {
152
- "$Kind" : " Function" ,
153
- "$IsBound" : false ,
154
- "$Parameter" : [],
155
- "$ReturnType" : {
156
- "$Collection" : false ,
157
- "$Type" : " Edm.String" ,
158
- "$Nullable" : true
159
- }
160
- },
161
- "op2" : {
162
- "$Kind" : " Function" ,
163
- "$IsBound" : false ,
164
- "$Parameter" : [
165
- {
166
- "$Name" : " prefix" ,
167
- "$Nullable" : false ,
168
- "$Type" : " Edm.String"
169
- }
170
- ],
171
- "$ReturnType" : {
172
- "$Collection" : false ,
173
- "$Type" : " Edm.String" ,
174
- "$Nullable" : false
175
- }
176
- },
177
145
"code" : {
178
146
"$Kind" : " Function" ,
179
147
"$IsBound" : true ,
Original file line number Diff line number Diff line change 268
268
}
269
269
}
270
270
},
271
- "/op1" : {
272
- "get" : {
273
- "tags" : [
274
- " Service Operations" ,
275
- " op1"
276
- ],
277
- "parameters" : [],
278
- "responses" : {
279
- "200" : {
280
- "description" : " " ,
281
- "content" : {
282
- "application/json" : {
283
- "schema" : {
284
- "$ref" : " #/components/schemas/Edm.String"
285
- }
286
- }
287
- }
288
- },
289
- "204" : {
290
- "description" : " Success"
291
- },
292
- "4XX" : {
293
- "$ref" : " #/components/responses/error"
294
- }
295
- }
296
- }
297
- },
298
- "/op2" : {
299
- "get" : {
300
- "tags" : [
301
- " Service Operations" ,
302
- " op2" ,
303
- " prefix"
304
- ],
305
- "parameters" : [
306
- {
307
- "required" : false ,
308
- "in" : " query" ,
309
- "name" : " prefix" ,
310
- "schema" : {
311
- "type" : " string" ,
312
- "nullable" : false
313
- }
314
- }
315
- ],
316
- "responses" : {
317
- "200" : {
318
- "description" : " " ,
319
- "content" : {
320
- "application/json" : {
321
- "schema" : {
322
- "$ref" : " #/components/schemas/Edm.String"
323
- }
324
- }
325
- }
326
- },
327
- "204" : {
328
- "description" : " Success"
329
- },
330
- "4XX" : {
331
- "$ref" : " #/components/responses/error"
332
- }
333
- }
334
- }
335
- },
336
271
"/$batch" : {
337
272
"post" : {
338
273
"summary" : " Send a group of requests" ,
You can’t perform that action at this time.
0 commit comments