diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-10 16:59:26 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-11 13:31:54 +0200 |
commit | a229723b8c65183f8cb7b62f24f7b9c41a2b622b (patch) | |
tree | df4a12b49dc500f877a58603f1c47d65d7bfe814 /build | |
parent | b09347ae536da3640d5cb8cff4254325f6e90926 (diff) | |
download | nextcloud-server-a229723b8c65183f8cb7b62f24f7b9c41a2b622b.tar.gz nextcloud-server-a229723b8c65183f8cb7b62f24f7b9c41a2b622b.zip |
feat: Add new forbidden filename options to Capabilities
Allow clients to access the new filename validation options
and make frontend name validation possible.
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/bootstrap/CapabilitiesContext.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/CapabilitiesContext.php b/build/integration/features/bootstrap/CapabilitiesContext.php index 79ede6ac8ba..8e98d9fb720 100644 --- a/build/integration/features/bootstrap/CapabilitiesContext.php +++ b/build/integration/features/bootstrap/CapabilitiesContext.php @@ -22,7 +22,9 @@ class CapabilitiesContext implements Context, SnippetAcceptingContext { * @param \Behat\Gherkin\Node\TableNode|null $formData */ public function checkCapabilitiesResponse(\Behat\Gherkin\Node\TableNode $formData) { - $capabilitiesXML = simplexml_load_string($this->response->getBody())->data->capabilities; + $capabilitiesXML = simplexml_load_string($this->response->getBody()); + Assert::assertNotFalse($capabilitiesXML, 'Failed to fetch capabilities'); + $capabilitiesXML = $capabilitiesXML->data->capabilities; foreach ($formData->getHash() as $row) { $path_to_element = explode('@@@', $row['path_to_element']); |