summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-03-12 14:42:37 +0100
committerprovokateurin <kate@provokateurin.de>2025-03-17 06:46:12 +0100
commit4f27d824713fc317040a1af3d47599e98df2e1fd (patch)
treea482caaa5afcc5f8c169a74334d2dcdd7f3f92c1 /tests
parenta59c89eb6ac4ca7f2e24d04fdb11795186b39c58 (diff)
downloadnextcloud-server-4f27d824713fc317040a1af3d47599e98df2e1fd.tar.gz
nextcloud-server-4f27d824713fc317040a1af3d47599e98df2e1fd.zip
fix(RichObjectStrings): Make exception messages for invalid parameters more useful for debuggingbackport/51442/stable31
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/RichObjectStrings/ValidatorTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/RichObjectStrings/ValidatorTest.php b/tests/lib/RichObjectStrings/ValidatorTest.php
index c5ce1f04dad..c5f88394a33 100644
--- a/tests/lib/RichObjectStrings/ValidatorTest.php
+++ b/tests/lib/RichObjectStrings/ValidatorTest.php
@@ -39,7 +39,7 @@ class ValidatorTest extends TestCase {
$this->expectException(InvalidObjectExeption::class);
- $this->expectExceptionMessage('Object is invalid, value 123 is not a string');
+ $this->expectExceptionMessage('Object for placeholder string1 is invalid, value 123 for key key is not a string');
$v->validate('test {string1} test.', [
'string1' => [
'type' => 'user',
@@ -49,7 +49,7 @@ class ValidatorTest extends TestCase {
],
]);
- $this->expectExceptionMessage('Object is invalid, key 456 is not a string');
+ $this->expectExceptionMessage('Object for placeholder string1 is invalid, key 456 is not a string');
$v->validate('test {string1} test.', [
'string1' => [
'type' => 'user',