Skip to content

Commit 655c20c

Browse files
committed
WIP
1 parent c04796a commit 655c20c

File tree

4 files changed

+3
-106
lines changed

4 files changed

+3
-106
lines changed

tests/Operation/Repository73Test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Flat3\Lodata\Tests\Laravel\Models\Repository as RepositoryModel;
1212
use Flat3\Lodata\Tests\TestCase;
1313

14+
/**
15+
* @requires PHP < 7.4
16+
*/
1417
class Repository73Test extends TestCase
1518
{
1619
public function setUp(): void

tests/__snapshots__/Operation/Repository73Test__test_metadata__1.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@
7171
</Record>
7272
</Annotation>
7373
</EntitySet>
74-
<FunctionImport Name="op1" Function="com.example.odata.op1"/>
75-
<FunctionImport Name="op2" Function="com.example.odata.op2"/>
7674
</EntityContainer>
7775
<EntityType Name="Airport">
7876
<Key>
@@ -90,13 +88,6 @@
9088
<Property Name="is_big" Type="Edm.Boolean" Nullable="true"/>
9189
<Property Name="country_id" Type="Edm.Int64" Nullable="true"/>
9290
</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>
10091
<Function Name="code" IsBound="true">
10192
<Parameter Name="airport" Type="com.example.odata.Airport" Nullable="false"/>
10293
<Parameter Name="suffix" Type="Edm.String" Nullable="true"/>

tests/__snapshots__/Operation/Repository73Test__test_metadata__3.json

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@
6161
"ContentIDSupported": true
6262
}
6363
},
64-
"op1Import": {
65-
"$Function": "com.example.odata.op1"
66-
},
67-
"op2Import": {
68-
"$Function": "com.example.odata.op2"
69-
},
7064
"$Annotations": {
7165
"com.example.odata.DefaultContainer": {
7266
"@Org.OData.Core.V1.ConventionalIDs": true,
@@ -148,32 +142,6 @@
148142
"$Nullable": true
149143
}
150144
},
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-
},
177145
"code": {
178146
"$Kind": "Function",
179147
"$IsBound": true,

tests/__snapshots__/Operation/Repository73Test__test_metadata__4.json

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -268,71 +268,6 @@
268268
}
269269
}
270270
},
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-
},
336271
"/$batch": {
337272
"post": {
338273
"summary": "Send a group of requests",

0 commit comments

Comments
 (0)