Skip to content

Commit

Permalink
Update API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 6, 2024
1 parent 4edf0f3 commit 7984d66
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.$/',
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.$/',
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.$/',
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.$/',
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.$/',
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.$/',
);
}

Expand Down

0 comments on commit 7984d66

Please sign in to comment.