From 7984d66dfd04635d7a98f9c2e017156aefeba87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Fri, 6 Sep 2024 14:11:04 +0200 Subject: [PATCH] Update API tests --- .../LayoutsAdminBundle/Controller/API/Block/CopyTest.php | 2 +- .../LayoutsAdminBundle/Controller/API/Block/CopyToZoneTest.php | 2 +- .../Controller/API/Block/CreateInZoneTest.php | 2 +- .../LayoutsAdminBundle/Controller/API/Block/MoveTest.php | 2 +- .../LayoutsAdminBundle/Controller/API/Block/MoveToZoneTest.php | 2 +- .../LayoutsAdminBundle/Controller/API/Layout/LinkZoneTest.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CopyTest.php b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CopyTest.php index b41d7accf..70b491a2e 100644 --- a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CopyTest.php +++ b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CopyTest.php @@ -197,7 +197,7 @@ public function testCopyWithInvalidBlockId(): void $this->assertException( $this->client->getResponse(), Response::HTTP_BAD_REQUEST, - 'There was an error validating "parent_block_id": This is not a valid UUID.', + '/^There was an error validating "parent_block_id": This (value )?is not a valid UUID.$/', ); } diff --git a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CopyToZoneTest.php b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CopyToZoneTest.php index 609abc15e..05e8c8bfb 100644 --- a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CopyToZoneTest.php +++ b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CopyToZoneTest.php @@ -169,7 +169,7 @@ public function testCopyToZoneWithInvalidLayoutId(): void $this->assertException( $this->client->getResponse(), Response::HTTP_BAD_REQUEST, - 'There was an error validating "layout_id": This is not a valid UUID.', + '/^There was an error validating "layout_id": This (value )?is not a valid UUID.$/', ); } diff --git a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CreateInZoneTest.php b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CreateInZoneTest.php index 10dd246cb..0cf0addbe 100644 --- a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CreateInZoneTest.php +++ b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/CreateInZoneTest.php @@ -98,7 +98,7 @@ public function testCreateInZoneWithInvalidLayoutId(): void $this->assertException( $this->client->getResponse(), Response::HTTP_BAD_REQUEST, - 'There was an error validating "layout_id": This is not a valid UUID.', + '/^There was an error validating "layout_id": This (value )?is not a valid UUID.$/', ); } diff --git a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/MoveTest.php b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/MoveTest.php index 1c16a6703..6163e6bcc 100644 --- a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/MoveTest.php +++ b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/MoveTest.php @@ -278,7 +278,7 @@ public function testMoveWithInvalidBlockId(): void $this->assertException( $this->client->getResponse(), Response::HTTP_BAD_REQUEST, - 'There was an error validating "parent_block_id": This is not a valid UUID.', + '/^There was an error validating "parent_block_id": This (value )?is not a valid UUID.$/', ); } diff --git a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/MoveToZoneTest.php b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/MoveToZoneTest.php index 13492e16d..ec228f0ba 100644 --- a/tests/bundles/LayoutsAdminBundle/Controller/API/Block/MoveToZoneTest.php +++ b/tests/bundles/LayoutsAdminBundle/Controller/API/Block/MoveToZoneTest.php @@ -199,7 +199,7 @@ public function testMoveToZoneWithInvalidLayoutId(): void $this->assertException( $this->client->getResponse(), Response::HTTP_BAD_REQUEST, - 'There was an error validating "layout_id": This is not a valid UUID.', + '/^There was an error validating "layout_id": This (value )?is not a valid UUID.$/', ); } diff --git a/tests/bundles/LayoutsAdminBundle/Controller/API/Layout/LinkZoneTest.php b/tests/bundles/LayoutsAdminBundle/Controller/API/Layout/LinkZoneTest.php index 665578b8a..664df3cf5 100644 --- a/tests/bundles/LayoutsAdminBundle/Controller/API/Layout/LinkZoneTest.php +++ b/tests/bundles/LayoutsAdminBundle/Controller/API/Layout/LinkZoneTest.php @@ -128,7 +128,7 @@ public function testLinkZoneWithInvalidLinkedLayoutId(): void $this->assertException( $this->client->getResponse(), Response::HTTP_BAD_REQUEST, - 'There was an error validating "linked_layout_id": This is not a valid UUID.', + '/^There was an error validating "linked_layout_id": This (value )?is not a valid UUID.$/', ); }