From 0ae250a136f9c8ec766efe48b5ab28c3d9c4a290 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 21 Dec 2022 17:20:29 +0100 Subject: [PATCH] Remove min/max values from the publication schemas --- packages/framework/tests/Feature/PublicationPageTest.php | 2 -- packages/framework/tests/Feature/PublicationTypeTest.php | 4 +--- tests/fixtures/test-publication-schema.json | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/framework/tests/Feature/PublicationPageTest.php b/packages/framework/tests/Feature/PublicationPageTest.php index c0bc298e558..bff8605712e 100644 --- a/packages/framework/tests/Feature/PublicationPageTest.php +++ b/packages/framework/tests/Feature/PublicationPageTest.php @@ -127,8 +127,6 @@ protected function createRealPublicationFiles(): void "fields": [ { "name": "slug", - "min": "4", - "max": "32", "type": "string" } ] diff --git a/packages/framework/tests/Feature/PublicationTypeTest.php b/packages/framework/tests/Feature/PublicationTypeTest.php index f13cb0805cc..c40a25be672 100644 --- a/packages/framework/tests/Feature/PublicationTypeTest.php +++ b/packages/framework/tests/Feature/PublicationTypeTest.php @@ -169,7 +169,7 @@ public function test_get_field_rules() { $publicationType = new PublicationType(...$this->getTestData()); $this->assertEquals([ - 'title' => ['between:0,128'], + 'title' => [], ], $publicationType->getFieldRules()->toArray()); } @@ -189,8 +189,6 @@ protected function getTestData(): array 'fields' => [ [ 'name' => 'title', - 'min' => '0', - 'max' => '128', 'type' => 'string', ], ], diff --git a/tests/fixtures/test-publication-schema.json b/tests/fixtures/test-publication-schema.json index 490762392f0..08d24f68970 100644 --- a/tests/fixtures/test-publication-schema.json +++ b/tests/fixtures/test-publication-schema.json @@ -12,8 +12,6 @@ "fields": [ { "name": "title", - "min": "0", - "max": "128", "type": "string" } ]