Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yvo-niedrich committed Aug 7, 2024
1 parent ebc5db6 commit 43b73e5
Show file tree
Hide file tree
Showing 198 changed files with 135 additions and 590 deletions.
6 changes: 3 additions & 3 deletions tests/Drivers/WithNumericCollectionDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Flat3\Lodata\Tests\Drivers;

use Flat3\Lodata\Annotation\Core\V1\ComputedDefaultValue;
use Flat3\Lodata\Annotation\Core\V1\Computed;
use Flat3\Lodata\DeclaredProperty;
use Flat3\Lodata\Drivers\CollectionEntitySet;
use Flat3\Lodata\EntityType;
Expand All @@ -22,7 +22,7 @@ protected function setUpDriver(): void

$entityType = new EntityType('passenger');
$entityType->setOpen();
$entityType->setKey((new DeclaredProperty('id', Type::int64()))->addAnnotation(new ComputedDefaultValue));
$entityType->setKey((new DeclaredProperty('id', Type::int64()))->addAnnotation(new Computed));
$this->addPassengerProperties($entityType);
$entityType->getDeclaredProperty('name')->setSearchable();
$entitySet = new CollectionEntitySet($this->entitySet, $entityType);
Expand All @@ -42,4 +42,4 @@ protected function captureDriverState(): array
{
return array_values(Lodata::getEntitySet($this->entitySet)->getCollection()->toArray());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<PropertyRef Name="offset"/>
</Key>
<Property Name="offset" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"offset": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"offset": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<PropertyRef Name="offset"/>
</Key>
<Property Name="offset" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"offset": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
7 changes: 0 additions & 7 deletions tests/__snapshots__/EntitySet/CSVTest__test_metadata__4.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"offset": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,13 +561,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,13 +561,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,6 @@
"type": "object",
"title": "passenger (Create schema)",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807,
"nullable": false
},
"name": {
"type": "string",
"nullable": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PropertyRef Name="id"/>
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false">
<Annotation Term="Org.OData.Core.V1.ComputedDefaultValue" Bool="true"/>
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Property>
<Property Name="name" Type="Edm.String" Nullable="false" MaxLength="255"/>
<Property Name="age" Type="Edm.Double" Nullable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"id": {
"$Type": "Edm.Int64",
"$Nullable": false,
"@Org.OData.Core.V1.ComputedDefaultValue": true
"@Org.OData.Core.V1.Computed": true
},
"name": {
"$Type": "Edm.String",
Expand Down
Loading

0 comments on commit 43b73e5

Please sign in to comment.